feat: use internal postdeploy hook instead of dokku's
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Glenn Y. Rolland 2024-07-08 21:12:45 +02:00
parent e509d0eb28
commit b17f8bd032
3 changed files with 6 additions and 9 deletions

View file

@ -100,8 +100,8 @@ 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 ./app.json /app/app.json
COPY ./postdeploy.sh /app/postdeploy.sh
COPY --chmod=755 ./postdeploy.sh /app/postdeploy.sh
COPY --chmod=755 ./postdeploy_hook.sh /docker-entrypoint-hooks.d/post-installation/postdeploy_hook.sh
ENV NEXTCLOUD_UPDATE=1

View file

@ -1,7 +0,0 @@
{
"scripts": {
"dokku": {
"postdeploy": "su -l -s /bin/sh www-data -c /app/postdeploy.sh"
}
}
}

4
postdeploy_hook.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
su -l -s /bin/sh www-data -c /app/postdeploy.sh