1
0
Fork 0

fix perms on .screenrc if needed
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Daniel Wolf 2022-03-07 15:09:03 -05:00
parent 724ea78bca
commit e34cf47b34
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ fi
if ! /usr/bin/pgrep -f minedock >/dev/null; then
export HOME=/mnt/config/home
/command/s6-setuidgid guardian /usr/bin/screen -dmS minedock /usr/bin/java -Dlog4j2.formatMsgNoLookups=true ${JAVA_OPTS} -jar server-launcher.jar nogui;
if [[ -f ${HOME}/.screenrc ]]; then
/bin/chown guardian:users ${HOME}
/bin/chown guardian:users ${HOME}/.screenrc
fi
sleep 10
fi
while /usr/bin/pgrep -f minedock >/dev/null; do