clockwerk-tools
/lib/upgrade-clockwerk |
@@ -83,7 +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 '{}' \; |
find /var/www/ -name \*.php -o -name \*.js -exec rm -rf '{}' \; |
cp -R * /var/www/ |
echo "[Clockwerk] Changing permissions..." |
chown -R www-data:www-data /var/www |