-
Notifications
You must be signed in to change notification settings - Fork 2
Sysadmin grodoudou mwext widgets 13 06 2012
Yannouk edited this page Jul 5, 2012
·
1 revision
- user : root
- host : grodoudou.seizam.com
- date : 13/06/12 15:21
- curpath : /var/wikizam
[email protected]# cd /root/ [email protected]# chmod 770 update-and-deploy-wikizam-trunk.sh
- Edit /root/update-and-deploy-wikizam-trunk.sh, see [1] set files rights properly
- Edit /root/update-and-deploy-wikizam-trunk.sh, see [2] backup compiled_template dir
- Edit /root/update-and-deploy-wikizam-trunk.sh, see [3] bugfix: make rm quiet when it cannot remove a temporary file
[email protected]# chmod 550 update-and-deploy-wikizam-trunk.sh [email protected]# ./update-and-deploy-wikizam-trunk.sh
- Check all files are 750 except compiled_templates (=770)
[email protected]# ls -lsah /var/wikizam/deployed/ [email protected]# ls -lsah /var/wikizam/deployed/extensions/Widgets/
total 88K 4.0K drwxr-x--- 6 root www-data 4.0K Jun 13 15:26 . 4.0K drwxr-x--- 32 root www-data 4.0K Jun 13 15:26 .. 4.0K drwxrwx--- 2 root www-data 4.0K Jun 13 15:26 compiled_templates 4.0K drwxr-x--- 2 root www-data 4.0K Jun 13 15:26 googlecode 4.0K -rwxr-x--- 1 root www-data 1.1K Jun 13 15:26 Makefile 4.0K drwxr-x--- 4 root www-data 4.0K Jun 13 15:26 smarty 4.0K drwxr-x--- 2 root www-data 4.0K Jun 13 15:26 smarty_plugins 8.0K -rwxr-x--- 1 root www-data 4.8K Jun 13 15:26 WidgetRenderer-old.php 8.0K -rwxr-x--- 1 root www-data 4.9K Jun 13 15:26 WidgetRenderer.php 4.0K -rwxr-x--- 1 root www-data 1.4K Jun 13 15:26 Widgets.i18n.magic.php 36K -rwxr-x--- 1 root www-data 33K Jun 13 15:26 Widgets.i18n.php 4.0K -rwxr-x--- 1 root www-data 3.1K Jun 13 15:26 Widgets.php
- [1] Edit /root/update-and-deploy-wikizam-trunk.sh
--- old 2012-06-13 15:23:29.000000000 +0200 +++ new 2012-06-13 15:25:34.000000000 +0200 @@ -30,4 +30,4 @@ chgrp -R www-data /var/wikizam/versions/trunk/* -chmod -R o-rwx /var/wikizam/versions/trunk/* -chmod -R g+rx /var/wikizam/versions/trunk/* +chmod -R 750 /var/wikizam/versions/trunk/* +chmod -R 770 /var/wikizam/versions/trunk/extensions/Widgets/compiled_templates
- [2] Edit /root/update-and-deploy-wikizam-trunk.sh
--- old 2012-06-13 15:29:48.000000000 +0200 +++ new 2012-06-13 15:38:12.000000000 +0200 @@ -20,2 +20,6 @@ +echo "Backup MediaWiki Widgets extension compiled templates..." +rm -rf /var/wikizam/_compiled_templates_to_restore +mv /var/wikizam/versions/trunk/extensions/Widgets/compiled_templates /var/wikizam/_compiled_templates_to_restore + echo "Updating trunk..." @@ -28,2 +32,5 @@ +echo "Restore MediaWiki Widgets extension compiled templates..." +mv /var/wikizam/_compiled_templates_to_restore /var/wikizam/versions/trunk/extensions/Widgets/compiled_templates + echo "Setting file rights and ownership..."
- [3] Edit /root/update-and-deploy-wikizam-trunk.sh
--- old 2012-06-13 15:39:05.000000000 +0200 +++ new 2012-06-13 15:39:26.000000000 +0200 @@ -29,3 +29,3 @@ echo "Using _ServerSettings.php as the config file..." -rm /var/wikizam/versions/trunk/ServerSettings.php +rm -f /var/wikizam/versions/trunk/ServerSettings.php cp /var/wikizam/_ServerSettings.php /var/wikizam/versions/trunk/ServerSettings.php