„scripts/start.sh“ ändern

This commit is contained in:
2022-04-18 14:47:28 +02:00
parent a9c09298e5
commit a13293d76f

View File

@@ -19,11 +19,12 @@ else
echo "---No optional script found, continuing---"
fi
echo "---Starting...---"
echo "---Taking ownership of data...---"
chown -R root:${GID} /opt/scripts
chmod -R 750 /opt/scripts
chown -R ${UID}:${GID} ${DATA_DIR}
echo "---Starting...---"
term_handler() {
kill -SIGINT $(pidof valheim_server.x86_64)
tail --pid=$(pidof valheim_server.x86_64) -f 2>/dev/null