Skip to content

Commit

Permalink
Merge pull request #879 from linuxserver/nginx-proxy-confs-find
Browse files Browse the repository at this point in the history
Fix find for gnu, use lsiown
  • Loading branch information
aptalca authored Apr 18, 2024
2 parents 19887e2 + 0e9ec9e commit 81dc2bc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# shellcheck shell=bash

###
# SWAG LOGIC https://github.com/linuxserver/docker-swag/blob/master/root/etc/cont-init.d/50-config
# SWAG LOGIC https://github.com/linuxserver/docker-swag/blob/master/root/etc/s6-overlay/s6-rc.d
###

# make our folders and links
Expand All @@ -17,7 +17,7 @@ if [[ -d /defaults/nginx/proxy-confs/ ]]; then
-maxdepth 1 \
-name "*.conf.sample" \
-type f \
-exec cp "{}" /config/nginx/proxy-confs/ +
-exec cp "{}" /config/nginx/proxy-confs/ \;
fi

# copy reverse proxy configs
Expand All @@ -28,5 +28,5 @@ if [[ ! -f /config/nginx/proxy.conf ]]; then
cp /defaults/nginx/proxy.conf.sample /config/nginx/proxy.conf
fi
# permissions
chown -R abc:abc \
lsiown -R abc:abc \
/config/nginx/{proxy.conf,ssl.conf,dhparams.pem,proxy-confs/}

0 comments on commit 81dc2bc

Please sign in to comment.