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 <