This commit is contained in:
qiaofeng1227 2023-10-25 16:48:50 +08:00
parent fbd0110193
commit 099f76d6e7
2 changed files with 9 additions and 9 deletions

View file

@ -1,4 +1,4 @@
# modify time: 202310251616, you can modify here to trigger Docker Build action
# modify time: 20231025650, you can modify here to trigger Docker Build action
# from Dockerfile: https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/docker/Dockerfile
# from image: https://hub.docker.com/r/jc21/nginx-proxy-manager

View file

@ -3,14 +3,14 @@
set +e
nginx_proxy(){
if [ ! -f /data/nginx/proxy_host/initproxy.conf ] || [ $(stat -c %Y /etc/shadow) -ge $(stat -c %Y /data/nginx/proxy_host/initproxy.conf) ]
then
cp /etc/initproxy.conf /data/nginx/proxy_host/
echo "Update initproxy.conf to Nginx"
else
echo "Don't need to update initproxy.conf to Nginx"
fi
# if [ ! -f /data/nginx/proxy_host/initproxy.conf ] || [ $(stat -c %Y /etc/shadow) -ge $(stat -c %Y /data/nginx/proxy_host/initproxy.conf) ]
# then
# cp /etc/initproxy.conf /data/nginx/proxy_host/
# echo "Update initproxy.conf to Nginx"
# else
# echo "Don't need to update initproxy.conf to Nginx"
# fi
}