diff --git a/roles/lmn_teacherlaptop/files/10-lmn-mount.sh b/roles/lmn_teacherlaptop/files/10-lmn-mount.sh index d4ee136..331e4e3 100755 --- a/roles/lmn_teacherlaptop/files/10-lmn-mount.sh +++ b/roles/lmn_teacherlaptop/files/10-lmn-mount.sh @@ -2,7 +2,7 @@ # set -eu -if [[ "$CONNECTION_ID" = "wg0" ]]; then +if [[ "$CONNECTION_ID" = "VPN-Schule" ]]; then USERNAME=$(ps -o pid,user,args -C sddm-helper | sed -nE 's/.*user (.*)$/\1/p') USERID=$(id -u "${USERNAME}") KRB5CCNAME=$(ls /tmp/krb5cc_"${USERID}"_*) diff --git a/roles/lmn_teacherlaptop/templates/wg0.nmconnection.j2 b/roles/lmn_teacherlaptop/templates/wg0.nmconnection.j2 index 18714cc..6faf772 100644 --- a/roles/lmn_teacherlaptop/templates/wg0.nmconnection.j2 +++ b/roles/lmn_teacherlaptop/templates/wg0.nmconnection.j2 @@ -1,5 +1,5 @@ [connection] -id=wg0 +id=VPN-Schule type=wireguard autoconnect=false interface-name=wg0