diff --git a/docker/deploy/etc/s6-overlay/scripts/runas-user b/docker/deploy/etc/s6-overlay/scripts/runas-user deleted file mode 100644 index 0363d99..0000000 --- a/docker/deploy/etc/s6-overlay/scripts/runas-user +++ /dev/null @@ -1,25 +0,0 @@ -#!/command/with-contenv bash - -PUID=${PUID:-9999} -PGID=${PGID:-9999} -WEBUSER_HOME=${WEBUSER_HOME:-"/var/www/html"} - -if [[ $PUID != 9999 || $PGID != 9999 ]]; then - - # Change the group ID - groupmod -o -g "$PGID" webgroup - - # Change the User ID - usermod -o -u "$PUID" webuser - - # Make sure the home directory is updated with the proper UID & GID - chown webuser:webgroup $WEBUSER_HOME -fi - -if [[ $S6_LOGGING != 1 ]]; then -echo " -User uid: $(id -u webuser) -User gid: $(id -g webuser) -------------------------------------- -" -fi