webmin-samba-docker/Service-check.sh
2018-09-11 22:27:41 -07:00

15 lines
205 B
Bash

#!/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