add shadow to set ownership

This commit is contained in:
Georges-Antoine Assi
2024-03-18 02:53:27 +00:00
parent faaa81995c
commit be553d5524
2 changed files with 4 additions and 3 deletions

View File

@@ -24,7 +24,8 @@ RUN apk add --upgrade \
mariadb-connector-c \
netcat-openbsd \
python3 \
tzdata
tzdata \
shadow
# Install additional build dependencies
RUN apk add --upgrade \

View File

@@ -112,8 +112,8 @@ fi
umask "$UMASK"
echo "Setting permissions and ownership for necessary directories..."
chown -R romm:romm /romm /redis-data /backend /frontend /tmp
chmod -R 755 /romm /redis-data /backend /frontend /tmp
chown -R romm:romm /romm /redis-data /backend
chmod -R 755 /romm /redis-data /backend
# switch to backend directory
cd /backend || { error_log "/backend directory doesn't seem to exist"; }