parent
97be7af1ee
commit
2c920625a6
@ -1,4 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
chown 999:999 /usr/local/lsws/conf -R
|
chown 999:999 /usr/local/lsws/conf -R
|
||||||
chown 999:1000 /usr/local/lsws/admin/conf -R
|
chown 999:1000 /usr/local/lsws/admin/conf -R
|
||||||
exec "$@"
|
|
||||||
|
#start ols and ping it every 60 second to make sure it running, if not exist container (assuming ols crashed)
|
||||||
|
$@
|
||||||
|
while true; do
|
||||||
|
if ! /usr/local/lsws/bin/lswsctrl status | grep 'litespeed is running with PID *' > /dev/null; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in new issue