fix: change permissions for hooks
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Glenn Y. Rolland 2024-07-20 16:54:11 +02:00
parent 9774108d79
commit 55c1b42170
6 changed files with 9 additions and 10 deletions

View file

@ -100,11 +100,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& mkdir /var/log/supervisord /var/run/supervisord
COPY supervisord.conf /etc/supervisord.conf
COPY --chmod=755 ./hooks/gx.post-installation.www.sh /app/gx.post-installation.www.sh
COPY --chmod=755 ./hooks/gx.post-installation.root.sh /docker-entrypoint-hooks.d/post-installation/gx.post-installation.root.sh
# COPY --chmod=755 ./hooks/gx.post-installation.www.sh /app/gx.post-installation.www.sh
# COPY --chmod=755 ./hooks/gx.post-installation.root.sh /docker-entrypoint-hooks.d/post-installation/gx.post-installation.root.sh
COPY --chmod=755 ./hooks/gx.before-starting.www.sh /app/gx.before-starting.www.sh
COPY --chmod=755 ./hooks/gx.before-starting.root.sh /docker-entrypoint-hooks.d/before-starting/gx.before-starting.root.sh
COPY --chmod=755 ./hooks/gx.before-starting.www.sh /docker-entrypoint-hooks.d/before-starting/gx.before-starting.www.sh
ENV NEXTCLOUD_UPDATE=1

View file

@ -2,7 +2,7 @@
all:
build:
docker-compose build
docker compose build
run:
docker-compose up -d
docker compose up -d

View file

@ -3,5 +3,5 @@
set -u
set -e
echo "== Running post-installation hooks as root user =="
echo "== Running before-starting hooks as $(id -un) user =="
su -l -s /bin/sh www-data -c /app/gx.before-starting.www.sh

View file

@ -3,7 +3,7 @@
set -u
set -e
echo "== Running post-installation hooks as www user =="
echo "== Running before-starting hooks as $(id -un) user =="
# wait for nextcloud to be initialized
WORKDIR=/var/www/html

View file

@ -3,6 +3,6 @@
set -u
set -e
echo "== Running post-installation hooks as root user =="
echo "== Running post-installation hooks as $(id -un) user =="
su -l -s /bin/sh www-data -c /app/gx.post-installation.www.sh

View file

@ -3,7 +3,7 @@
set -u
set -e
echo "== Running post-installation hooks as www user =="
echo "== Running post-installation hooks as $(id -un) user =="
# wait for nextcloud to be initialized
WORKDIR=/var/www/html