Skip to content

Commit 129a283

Browse files
author
Chuy García
committed
fix: restore CMD apache2-foreground so containers boot when image Cmd is cleared
1 parent 061f97d commit 129a283

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎nextcloud/Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ EXPOSE 8034
3030
COPY docker-entrypoint.dappnode.sh /usr/local/bin/
3131
RUN chmod +x /usr/local/bin/docker-entrypoint.dappnode.sh
3232
ENTRYPOINT ["docker-entrypoint.dappnode.sh"]
33+
CMD ["apache2-foreground"]

‎nextcloud/docker-entrypoint.dappnode.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ if [ -f /var/www/html/occ ]; then
99
su -p www-data -s /bin/sh -c '/usr/local/bin/php /var/www/html/occ upgrade' || true
1010
fi
1111

12+
if [ $# -eq 0 ]; then
13+
set -- apache2-foreground
14+
fi
1215
exec /entrypoint.sh "$@"

0 commit comments

Comments
 (0)