This script will allow you to move a wiki at /var/www/deki-hayes to the more modern path of /var/www/dekiwiki.
Note, you can copy and paste both these blocks into your terminal.
sed -i -e 's/deki-hayes/dekiwiki/g' /etc/dekiwiki/mindtouch.deki.startup.xml sed -i -e 's/deki-hayes/dekiwiki/g' /etc/dekiwiki/mindtouch.host.conf sed -i -e 's/deki-hayes/dekiwiki/g' /etc/init.d/dekiwiki sed -i -e 's/deki-hayes/dekiwiki/g' /etc/init.d/dekihost sed -i -e 's/deki-hayes/dekiwiki/g' /var/www/deki-hayes/LocalSettings.php sed -i -e 's/deki-hayes/dekiwiki/g' /etc/apache2/sites-available/* sed -i -e 's/deki-hayes/dekiwiki/g' /etc/exim4/update-exim4.conf.conf mv /var/www/deki-hayes /var/www/dekiwiki echo "UPDATE config SET config_value='/var/www/dekiwiki/attachments' WHERE config_key='storage/fs/path'" | mysql -u root -ppassword wikidb /etc/init.d/dekiwiki restart /etc/init.d/apache2 restart
If you have the old init scripts, and wish to move to the newer ones, here's the steps for you. (Less necessary and more dangerous).
# backup the old init script mkdir ~/upgrade mv /etc/init.d/dekiwiki ~/upgrade/dekiwiki-init rm /etc/init.d/dekihost update-rc.d -f dekihost remove # get the new init script wget https://svn.mindtouch.com/source/public/dekiwiki/trunk/config/dekiwiki-init.debian -O /etc/init.d/dekiwiki chmod 755 /etc/init.d/dekiwiki update-rc.d dekiwiki start 92 2 . # make sure you have the latest updateWiki.sh svn up /opt/deki/src/scripts/ # create the init script config file from the old config file cp /var/www/dekiwiki/config/mindtouch.host.conf.in /etc/dekiwiki/mindtouch.host.conf APIKEY=`grep APIKEY= /var/www/dekiwiki/bin/mindtouch.host.sh | cut -d \" -f 2` MONO=`which mono` BIN_DIR=/var/www/dekiwiki/bin sed -i -e "s@%APIKEY%@$APIKEY@" /etc/dekiwiki/mindtouch.host.conf sed -i -e "s@%BIN_DIR%@$BIN_DIR@" /etc/dekiwiki/mindtouch.host.conf sed -i -e "s@%MONO%@$MONO@" /etc/dekiwiki/mindtouch.host.conf