Rebase modupdater (#267)

Based on work from https://github.com/ALovedOne and https://github.com/patschi
This commit is contained in:
Sandro Jäckel
2019-07-04 00:34:09 +02:00
committed by Florian Kinder
parent 4ba56ee010
commit 28598a42a3
6 changed files with 122 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh -x
#!/bin/bash -x
set -euo pipefail
id
@ -35,6 +35,10 @@ if [ "$NRTMPSAVES" -gt 0 ]; then
rm -f "$SAVES"/*.tmp.zip
fi
if [[ $UPDATE_MODS_ON_START ]]; then
./docker-update-mods.sh
fi
if [ "$(id -u)" = '0' ]; then
# Update the User and Group ID based on the PUID/PGID variables
usermod -o -u "$PUID" factorio