initial commit
This commit is contained in:
16
entrypoint.sh
Executable file
16
entrypoint.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
nginx &
|
||||
|
||||
FILE="/etc/nginx/conf.d/nginx.conf"
|
||||
LAST=`md5sum "$FILE"`
|
||||
while true; do
|
||||
sleep 0.1;
|
||||
if [ -f "$FILE" ]; then
|
||||
NEW=`md5sum "$FILE"`
|
||||
if [ "$NEW" != "$LAST" ]; then
|
||||
nginx -s reload;
|
||||
LAST="$NEW";
|
||||
fi
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user