LinHES Forums
http://forum.linhes.org/

Webmin borked
http://forum.linhes.org/viewtopic.php?f=5&t=12600
Page 1 of 1

Author:  donjski [ Wed Nov 15, 2006 8:20 pm ]
Post subject:  Webmin borked

I did an auto upgrade and webmin is borked up. I have tried everything to no avail. I need to get it completly removed and then reinstalled.

Anyone know how to do that?

Author:  tjc [ Wed Nov 15, 2006 8:42 pm ]
Post subject: 

After an upgrade you need to reconfigure it. I use this script:
Code:
root@black2:~# more setup/restore_webmin.sh
#!/bin/bash
[ $# -ne 1 -o -z "$1" ] && {
    echo "You need to supply the webmin password for root"
    exit 1
}
cd /
mv /etc/webmin/miniserv.conf /etc/webmin/miniserv.conf.orig
tar zxvf /myth/backup/savedfiles.tar.gz ./etc/webmin/miniserv.conf
/usr/share/webmin/changepass.pl /etc/webmin root "$1"
/etc/init.d/webmin start
update-rc.d webmin defaults

If you're using an older version you may need to tweak the tar command for bzip2 compression.

Author:  tjc [ Mon Feb 26, 2007 7:17 pm ]
Post subject: 

BTW - I do not recommned using this script with R5E50 or later. Please see the Upgrade Hints for the appropriate version. Restoring /etc/webmin/miniserv.conf like this is known to be a bad idea in R5E50.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/