store webmin configuration in /app/data/webmin

pull/2/head
Sameer Naik 2014-05-02 00:42:52 +05:30
parent 7058943163
commit 0cfd32effc
1 changed files with 10 additions and 0 deletions

View File

@ -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