Update start.sh

This commit is contained in:
Kjeld Schouten-Lebbing
2022-04-07 14:36:32 +02:00
committed by GitHub
parent 0fb3b33466
commit 27f2c6ee47

View File

@@ -2,14 +2,14 @@
echo "---Ensuring UID: ${UID} matches user---"
usermod -u ${UID} ${USER}
echo "---Ensuring GID: ${GID} matches user---"
groupmod -g ${GID} ${USER} >> /dev/null ||:
groupmod -g ${GID} ${USER} > /dev/null 2>&1 ||:
usermod -g ${GID} ${USER}
echo "---Setting umask to ${UMASK}---"
umask ${UMASK}
echo "---Checking for optional scripts---"
cp -f /opt/custom/user.sh /opt/scripts/start-user.sh >> /dev/null ||:
cp -f /opt/scripts/user.sh /opt/scripts/start-user.sh >> /dev/null ||:
cp -f /opt/custom/user.sh /opt/scripts/start-user.sh > /dev/null 2>&1 ||:
cp -f /opt/scripts/user.sh /opt/scripts/start-user.sh > /dev/null 2>&1 ||:
if [ -f /opt/scripts/start-user.sh ]; then
echo "---Found optional script, executing---"