webmin-samba-docker/Service-check.sh

18 lines
266 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
2018-11-17 20:00:22 +01:00
ln -s /data/samba /etc/samba
ln -s /data/webmin /etc/webmin
2018-09-12 07:27:41 +02:00
while true
do
if [[ $(service webmin status) = *stopped* ]]
then
break
else
sleep 5m
fi
2018-11-17 20:00:22 +01:00
done