mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-07-10 11:05:21 +02:00
Rebase modupdater (#267)
Based on work from https://github.com/ALovedOne and https://github.com/patschi
This commit is contained in:
committed by
Florian Kinder
parent
4ba56ee010
commit
28598a42a3
@ -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
|
||||
|
Reference in New Issue
Block a user