webmin-samba-docker/Service-check.sh
2018-11-19 10:32:36 -08:00

18 lines
283 B
Bash

#!/bin/bash
unison -batch /etc/samba /data/samba
unison -batch /etc/webmin /data/webmin
apt-get update && apt-get upgrade -y
wait
service webmin start
service smbd start
service nmbd start
while true
do
if [[ $(service webmin status) = *stopped* ]]
then
break
else
sleep 5m
fi
done