Files
webgui/plugins/dynamix.docker.manager/event/started
Eric Schultz 30ca111094 initial commit
2015-10-24 10:17:28 -07:00

12 lines
404 B
Bash
Executable File

#!/bin/sh
# Only start if array has started in Normal operation mode
if grep -q 'fsState="Started"' /var/local/emhttp/var.ini && grep -q 'startMode="Normal"' /var/local/emhttp/var.ini; then
# Start Docker.io
if [ -x /etc/rc.d/rc.docker ]; then
echo "Starting Docker..."
/etc/rc.d/rc.docker start | logger
/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/dockerupdate.php | logger
fi
fi