Improve printer installation on teacherlaptops
- Update printer list when connected via VPN - Prevent printer removal, when logging in without a connection to the school network
This commit is contained in:
parent
df50907006
commit
2c201e160e
2 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
set -eu
|
||||
|
||||
## Exit if first printserver is not reachable
|
||||
ping -c1 -W1 {{ printservers | first }} || exit 0
|
||||
|
||||
printservers="{{ printservers | join(' ') }}"
|
||||
hostgroup="$(id -Gn "${HOSTNAME^^}$")"
|
||||
usergroup="$(id -Gn "${SUDO_USER}")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue