webmin-samba-docker/Service-check.sh
2018-11-17 11:00:22 -08:00

18 lines
266 B
Bash

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