set permissions to 1000 at build
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
MrMeeb 2023-05-27 21:58:31 +00:00
parent 76cdb2640e
commit ab73132553
2 changed files with 5 additions and 4 deletions

View File

@ -52,7 +52,8 @@ RUN npm install && \
COPY root/ / COPY root/ /
RUN chmod +x /cronicle-prepare.sh && \ RUN chmod +x /cronicle-prepare.sh && \
chmod +x /container-init.sh chmod +x /container-init.sh && \
chown -R ${PUID}:${PGID} /app /config
EXPOSE 3012 EXPOSE 3012

View File

@ -38,16 +38,16 @@ else
exit 1 exit 1
fi fi
echo "Checking permissions in /config and /app (this can take some time)." echo "Checking permissions in /config and /app."
if [ ! "$(stat -c %u /app)" -eq "${PUID}" ] || [ ! "$(stat -c %g /app)" -eq "${PGID}" ] if [ ! "$(stat -c %u /app)" -eq "${PUID}" ] || [ ! "$(stat -c %g /app)" -eq "${PGID}" ]
then then
echo "Fixing permissions for /app." echo "Fixing permissions for /app (this can take some time)."
chown -R cronicle:cronicle /app chown -R cronicle:cronicle /app
fi fi
if [ ! "$(stat -c %u /config)" -eq "${PUID}" ] || [ ! "$(stat -c %g /config)" -eq "${PGID}" ] if [ ! "$(stat -c %u /config)" -eq "${PUID}" ] || [ ! "$(stat -c %g /config)" -eq "${PGID}" ]
then then
echo "Fixing permissions for /config." echo "Fixing permissions for /config (this can take some time)."
chown -R cronicle:cronicle /config chown -R cronicle:cronicle /config
fi fi