scripts/start.sh aktualisiert
This commit is contained in:
@@ -22,6 +22,14 @@ fi
|
|||||||
echo "---Checking configuration for noVNC---"
|
echo "---Checking configuration for noVNC---"
|
||||||
novnccheck
|
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...---"
|
echo "---Taking ownership of data...---"
|
||||||
chown -R root:${GID} /opt/scripts
|
chown -R root:${GID} /opt/scripts
|
||||||
chmod -R 750 /opt/scripts
|
chmod -R 750 /opt/scripts
|
||||||
|
Reference in New Issue
Block a user