webmin-samba-docker/Service-check.sh

15 lines
205 B
Bash
Raw Normal View History

2018-09-12 07:27:41 +02:00
#!/bin/bash
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