scripts/start.sh aktualisiert

This commit is contained in:
2024-04-15 22:58:37 +02:00
parent 39e4ab1576
commit 3f696f45c2

View File

@@ -22,6 +22,14 @@ fi
echo "---Checking configuration for noVNC---"
novnccheck
if [ ! -f /etc/sudoers.d/${USER} ]; then
echo "---Creating sudoers file for user: ${USER}---"
echo "${USER} ALL=(ALL) NOPASSWD: /usr/bin/wg-quick up *
${USER} ALL=(ALL) NOPASSWD: /usr/bin/wg-quick down *" > /etc/sudoers.d/${USER}
else
echo "---Found sudoers file for user: ${USER}---"
fi
echo "---Taking ownership of data...---"
chown -R root:${GID} /opt/scripts
chmod -R 750 /opt/scripts