mirror of
https://github.com/10h30/ols-docker-env.git
synced 2026-05-12 15:21:24 +09:00
14 lines
353 B
Bash
14 lines
353 B
Bash
#!/bin/bash
|
|
chown 999:999 /usr/local/lsws/conf -R
|
|
chown 999:1000 /usr/local/lsws/admin/conf -R
|
|
|
|
#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
|
|
|