webmin-samba-docker/Service-check.sh

18 lines
283 B
Bash
Raw Normal View History

2018-09-12 07:27:41 +02:00
#!/bin/bash
2018-11-19 19:32:36 +01:00
unison -batch /etc/samba /data/samba
unison -batch /etc/webmin /data/webmin
2018-09-12 07:27:41 +02:00
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
2018-11-17 20:00:22 +01:00
done