updater: force adding user/group even if GID/UID is duplicate

testing-php81
Andrew Dolgov 3 years ago
parent c552bb48c9
commit 219913d12b

@ -10,7 +10,6 @@ unset HTTP_PORT
unset HTTP_HOST
if ! id app >/dev/null 2>&1; then
# what if i actually need a duplicate GID/UID group?
addgroup -g $OWNER_GID app || echo app:x:$OWNER_GID:app | \

@ -8,8 +8,13 @@ unset HTTP_HOST
sleep 30
if ! id app >/dev/null 2>&1; then
addgroup -g $OWNER_GID app
adduser -D -h /var/www/html -G app -u $OWNER_UID app
# what if i actually need a duplicate GID/UID group?
addgroup -g $OWNER_GID app || echo app:x:$OWNER_GID:app | \
tee -a /etc/group
adduser -D -h /var/www/html -G app -u $OWNER_UID app || \
echo app:x:$OWNER_UID:$OWNER_GID:Linux User,,,:/var/www/html:/bin/ash | tee -a /etc/passwd
fi
while ! pg_isready -h $TTRSS_DB_HOST -U $TTRSS_DB_USER; do

Loading…
Cancel
Save