websoft9/docker/proxy/s6/w9init/migration.sh
2023-10-25 15:33:30 +08:00

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