Update start.sh
This commit is contained in:
committed by
GitHub
parent
0fb3b33466
commit
27f2c6ee47
@@ -2,14 +2,14 @@
|
|||||||
echo "---Ensuring UID: ${UID} matches user---"
|
echo "---Ensuring UID: ${UID} matches user---"
|
||||||
usermod -u ${UID} ${USER}
|
usermod -u ${UID} ${USER}
|
||||||
echo "---Ensuring GID: ${GID} matches 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}
|
usermod -g ${GID} ${USER}
|
||||||
echo "---Setting umask to ${UMASK}---"
|
echo "---Setting umask to ${UMASK}---"
|
||||||
umask ${UMASK}
|
umask ${UMASK}
|
||||||
|
|
||||||
echo "---Checking for optional scripts---"
|
echo "---Checking for optional scripts---"
|
||||||
cp -f /opt/custom/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 ||:
|
cp -f /opt/scripts/user.sh /opt/scripts/start-user.sh > /dev/null 2>&1 ||:
|
||||||
|
|
||||||
if [ -f /opt/scripts/start-user.sh ]; then
|
if [ -f /opt/scripts/start-user.sh ]; then
|
||||||
echo "---Found optional script, executing---"
|
echo "---Found optional script, executing---"
|
||||||
|
Reference in New Issue
Block a user