From 3c85a860ac22b294c88dea1d5ff1057214daa161 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 14 Mar 2023 21:29:29 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rootfs/usr/local/etc/docker/init.d/zz-nginx.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh b/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh index da5e122..e56f468 100755 --- a/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh +++ b/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh @@ -40,8 +40,8 @@ nginx_bin="$(type -P 'nginx')" # use this function to update config files - IE: change port __update_conf_files() { echo "Initializing nginx web server in $conf_dir" - mkdir -p "$data_dir/log/nginx" - chmod -Rf 777 "$data_dir/log/nginx" + mkdir -p "$data_dir/logs/nginx" + chmod -Rf 777 "$data_dir/logs/nginx" [ -d "$etc_dir" ] || mkdir -p "$etc_dir" [ -d "$conf_dir" ] && cp -Rf "$conf_dir/." "$etc_dir/" if [ "$SSL_ENABLED" = "true" ]; then @@ -76,7 +76,7 @@ __update_ssl_conf() { # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # function to run before executing __pre_execute() { - grep -s -q "nginx:" "/etc/passwd" && chown -Rf nginx:nginx "$etc_dir" "$www_dir" "$data_dir/log/nginx" + grep -s -q "nginx:" "/etc/passwd" && chown -Rf nginx:nginx "$etc_dir" "$www_dir" "$data_dir/logs/nginx" return 0 }