From 13d29c224a5da82ba132b5e4b2e185e3cc91dafa Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 31 Jul 2025 09:29:04 +0200 Subject: [PATCH] moved config steps into separate scripts --- rootfs/app/entrypoint.sh | 181 +++--------------- rootfs/app/entrypoint.sh.d/10_user.sh | 11 ++ .../app/entrypoint.sh.d/90_chown_webroot.sh | 7 + rootfs/app/entrypoint.sh.d/90_logs.sh | 24 +++ rootfs/app/entrypoint.sh.d/90_nginx.sh | 24 +++ rootfs/app/entrypoint.sh.d/90_php.sh | 45 +++++ rootfs/app/entrypoint.sh.d/90_ssh.sh | 19 ++ rootfs/app/entrypoint.sh.d/90_stats.sh | 33 ++++ rootfs/app/entrypoint.sh.d/90_webdav.sh | 29 +++ 9 files changed, 222 insertions(+), 151 deletions(-) create mode 100755 rootfs/app/entrypoint.sh.d/10_user.sh create mode 100755 rootfs/app/entrypoint.sh.d/90_chown_webroot.sh create mode 100755 rootfs/app/entrypoint.sh.d/90_logs.sh create mode 100755 rootfs/app/entrypoint.sh.d/90_nginx.sh create mode 100755 rootfs/app/entrypoint.sh.d/90_php.sh create mode 100755 rootfs/app/entrypoint.sh.d/90_ssh.sh create mode 100755 rootfs/app/entrypoint.sh.d/90_stats.sh create mode 100755 rootfs/app/entrypoint.sh.d/90_webdav.sh diff --git a/rootfs/app/entrypoint.sh b/rootfs/app/entrypoint.sh index 0c26fa4..937c649 100755 --- a/rootfs/app/entrypoint.sh +++ b/rootfs/app/entrypoint.sh @@ -10,189 +10,68 @@ PATH_AUTH=${PATH_BASE}/auth WEBDAV_PORT=${WEBDAV_PORT:-8080} STATS_PORT=${STATS_PORT:-8081} LOG_DAYS=${LOG_DAYS:-7} + PHP=${PHP:-none} POSTSIZE=${POSTSIZE:-256M} USERNAME=${USERNAME:-theuser} PUID=${PUID:-1000} GROUPNAME=${GROUPNAME:-thegroup} PGID=${PGID:-1000} -RANDOMPWD=$(tr -dc A-Za-z0-9 "/etc/${PHP}/php-fpm.d/www.conf" <"/etc/${PHP}/conf.d/post_size.ini" <"/etc/nginx/custom.d/post_size.conf" <"/etc/nginx/conf.d/errorlog.conf" <"/etc/nginx/httpd.d/accesslog.conf" < /etc/nginx/conf.d/user.conf < /etc/nginx/http.d/webdav.conf </etc/logrotate.d/nginx < /etc/nginx/http.d/stats.conf </etc/logrotate.d/nginx < /etc/nginx/conf.d/user.conf <"/etc/nginx/custom.d/post_size.conf" <"/etc/nginx/conf.d/errorlog.conf" <"/etc/nginx/httpd.d/accesslog.conf" <"/etc/${PHP}/php-fpm.d/www.conf" <"/etc/${PHP}/conf.d/post_size.ini" < /etc/nginx/http.d/stats.conf < /etc/nginx/http.d/webdav.conf <