clockwerk-tools – Diff between revs 20 and 21
?pathlinks?
Rev 20 | Rev 21 | |||
---|---|---|---|---|
Line 81... | Line 81... | |||
81 | cd ../clockwerk-www/ |
81 | cd ../clockwerk-www/ |
|
82 | svn update |
82 | svn update |
|
83 | 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 |
83 | 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 |
|
84 | if [ $? == "0" ]; then |
84 | if [ $? == "0" ]; then |
|
85 | echo "[Clockwerk] Updating website..." |
85 | echo "[Clockwerk] Updating website..." |
|
86 | find /var/www/ -name \*.php -o -name \*.js -exec rm -rf '{}' \; |
86 | find /var/www/ -name \*.php -o -name \*.js -o -name \*.css -exec rm -rf '{}' \; |
|
87 | cp -R * /var/www/ |
87 | cp -R * /var/www/ |
|
88 | echo "[Clockwerk] Changing permissions..." |
88 | echo "[Clockwerk] Changing permissions..." |
|
89 | chown -R www-data:www-data /var/www |
89 | chown -R www-data:www-data /var/www |
|
90 | service lighttpd restart |
90 | service lighttpd restart |
|
91 | fi |
91 | fi |