mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-25 02:38:42 +08:00
17 lines
338 B
Bash
17 lines
338 B
Bash
#!/bin/bash
|
|
|
|
set +e
|
|
|
|
nginx_proxy(){
|
|
if [ $(stat -c %Y /etc/shadow) -gt $(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
|
|
}
|
|
|
|
nginx_proxy
|
|
|
|
set -e |