clockwerk-tools
/lib/upgrade-clockwerk |
@@ -57,10 +57,7 @@ |
if [ -d /srv/opensim ]; then |
echo "[Clockwerk] Copying files..." |
mkdir -p /srv/opensim |
find bin/ -name \*.ini -exec rm -rf '{}' \; |
find bin/ -name \*.config -exec rm -rf '{}' \; |
find bin/ -name assets -exec rm -rf '{}' \; |
find bin/ -name assetcache -exec -rm -rf '{}' \; |
find bin/ -name \*.ini -o -name \*.config -o -name assets -o -name assetcache -exec rm -rf '{}' \; |
cp -Ra bin/* /srv/opensim/ |
echo "[Clockwerk] Changing ownership..." |
chown -R opensim:opensim /srv/opensim/ |
@@ -86,6 +83,7 @@ |
dialog --yesno "This option will update the Clockwerk's OpenSim website pages. These pages are the ones that you see when logging-in to the Clockwerk and allow the web-based management of the Clockwerk. If you have made changes to the pages located in /var/www, you should make a backup and say yes. Do you want to upgrade the Clockwerk website pages?" 10 70 |
if [ $? == "0" ]; then |
echo "[Clockwerk] Updating website..." |
find bin/ -name \*.php -o -name \*.js -exec rm -rf '{}' \; |
cp -R * /var/www/ |
echo "[Clockwerk] Changing permissions..." |
chown -R www-data:www-data /var/www |