Minimized processes running as root.

This commit is contained in:
Carlos M. Martinez
2024-01-27 19:49:43 -05:00
parent 3802a87bf9
commit fdfffc47d8
4 changed files with 17 additions and 11 deletions

View File

@@ -9,4 +9,8 @@ FILE_PATH="/palworld/backups/palworld-save-${DATE}.tar.gz"
cd /palworld/Pal/ || exit
tar -zcf "$FILE_PATH" "Saved/"
if [ $(id -u) -eq 0 ]; then
chown steam:steam "$FILE_PATH"
fi
echo "backup created at $FILE_PATH"