diff --git a/assets/init b/assets/init index a0fb002..aa546c3 100755 --- a/assets/init +++ b/assets/init @@ -31,6 +31,16 @@ fi rm -rf /var/lib/bind ln -sf /app/data/bind/lib /var/lib/bind +# create directory for webmin +mkdir -p /app/data/webmin + +# populate the default webmin configuration if it does not exist +if [ ! -d /app/data/webmin/etc ]; then + mv /etc/webmin /app/data/webmin/etc +fi +rm -rf /etc/webmin +ln -sf /app/data/webmin/etc /etc/webmin + appStart () { supervisorctl start named /etc/init.d/webmin start