fix: workdir may not be available at startup

This commit is contained in:
Glenn Y. Rolland 2024-05-05 19:16:51 +02:00
parent 32a3c9024e
commit 0f51b7ffc1
2 changed files with 3 additions and 3 deletions

View file

@ -96,8 +96,8 @@ RUN apt-get update && apt-get install -y \
&& mkdir /var/log/supervisord /var/run/supervisord && mkdir /var/log/supervisord /var/run/supervisord
COPY supervisord.conf /etc/supervisord.conf COPY supervisord.conf /etc/supervisord.conf
COPY app.json /app/app.json COPY app.json /app.json
COPY postdeploy.sh /app/postdeploy.sh COPY postdeploy.sh /dokku/postdeploy.sh
ENV NEXTCLOUD_UPDATE=1 ENV NEXTCLOUD_UPDATE=1

View file

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