This script will allow you to move a wiki at /var/www/deki-hayes to the more modern path of /var/www/dekiwiki.
If you have a multi-tenant install you have multiple attachment locations and databases. Be sure to run the updates, correctly, on each of them in turn!
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/* mv /var/www/deki-hayes /var/www/dekiwiki # set the correct MySQL root password & DB in the below line echo "UPDATE config SET config_value = replace(config_value, '/var/www/deki-hayes', '/var/www/dekiwiki') 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` GUID=`echo -n $APIKEY| md5sum | cut -d ' ' -f 1` 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 sed -i -e "s@%GUID%@$GUID@" /etc/dekiwiki/mindtouch.host.conf
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by