From 049c6c8c8fb3341972ff5bd5ca09cadcfd90f344 Mon Sep 17 00:00:00 2001 From: Wonderfall <wonderfall@targaryen.house> Date: Sun, 12 Nov 2017 13:44:17 +0100 Subject: [PATCH] reverse: revert 62018f --- reverse/rootfs/usr/local/bin/startup | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/reverse/rootfs/usr/local/bin/startup b/reverse/rootfs/usr/local/bin/startup index 2bdfb2c..d897b5a 100644 --- a/reverse/rootfs/usr/local/bin/startup +++ b/reverse/rootfs/usr/local/bin/startup @@ -194,15 +194,7 @@ f_log INF "Start reverse configuration ..." # Prepare container f_log INF "Create user 'reverse'" -if [ "$(grep ${GID} /etc/group)" == "" ]; then - addgroup -g ${GID} reverse -else - GROUP_NAME=$(grep ${GID} /etc/group | cut -d: -f1) -fi - -if [ "$(grep ${UID} /etc/passwd)" == "" ]; then - adduser -H -s /bin/sh -D -G ${GROUP_NAME} -u ${UID} reverse -fi +addgroup -g ${GID} reverse && adduser -H -s /bin/sh -D -G reverse -u ${UID} reverse f_log INF "Create folder" mkdir -p /nginx/sites-enabled /nginx /nginx/log /nginx/run /nginx/sites-enabled /nginx/ssl /nginx/ssl/selfsigned/dhparam