[Hejes-devel] [1728] document update_htpdevel.sh

hejes-devel at nytud.hu hejes-devel at nytud.hu
Wed Mar 8 16:11:59 CET 2017


Revision: 1728
Author:   mittelholcz
Date:     2017-03-08 16:11:58 +0100 (Wed, 08 Mar 2017)
Log Message:
-----------
document update_htpdevel.sh

Modified Paths:
--------------
    trunk/web2py/applications/helyesiras_webdev/update_htpdevel.sh

Modified: trunk/web2py/applications/helyesiras_webdev/update_htpdevel.sh
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/update_htpdevel.sh	2017-03-08 13:54:33 UTC (rev 1727)
+++ trunk/web2py/applications/helyesiras_webdev/update_htpdevel.sh	2017-03-08 15:11:58 UTC (rev 1728)
@@ -2,34 +2,38 @@
 
 # Ezt a script-et a 'helyes' group tagjai hasznalhatjak a clara-n levo
 # htp-devel frissitesere es ujrainditasara.
+#
+# USAGE (as member of group 'helyes')
 # Ne hasznaljuk ennek a fajlnak az svn working copy-ban levo valtozatat!
-# Helyette:
-#   1. Masoljuk azt a /usr/local/bin/-be futasi joggal.
-#   2. Kommenteljuk ki az alabbi ket sort a ../bin/-beli peldanyban.
-#   3. Az /etc/sudoers-ben be kell allitani a helyes csoport jogosultsagat.
+# Hasznaljuk a 'sudo update_htpdevel.sh' parancsot
+#
+# INSTALL (as root)
+#   0. UPDATE 1-3
+#   1. set up /etc/sudoers with visudo (%helyes ALL=(ALL:ALL) NOPASSWD: /usr/local/bin/update_htpdevel.sh)
+#
+# UPDATE (as root)
+#   0. commit the new verion (svn commit -m'comment' update_htpdevel.sh)
+#   1. copy to /usr/local/bin/
+#   2. set execution permission (chmod u+x /usr/local/bin/update_htpdevel.sh)
+#   3. comment the lines below to line 'exit' (inclusive) in the /usr/local/bin/
 
-echo -e 'Do not execute this file!\nexit'
+echo 'Do not execute this file!'
+echo 'exit'
 exit
 
 
-# test directory:
-DIR='/home/mittelholcz/work/helyesiras/trunk/web2py/applications/helyesiras_webdev'
-# DIR='/opt/web2py/applications/helyesiras_webdev/'
+DIR='/opt/web2py/applications/helyesiras_webdev/'
+USERGROUP='www-data:www-data'
 
-# test user:group
-USERGROUP='mittelholcz:mittelholcz'
-#USERGROUP='www-data:www-data'
 
-
-
-# 1. htp-devel mogotti working copy frissitese, jogosultsagok beallitasa
+#~ 1. update working copy, set permissions
 svn update ${DIR}
 chown -R ${USERGROUP} ${DIR}
 chmod -R g+w ${DIR}
 
-# 2. memcached ujrainditasa
-echo 'flush_all' | nc -q 2 localhost 11211
+#~ 2. restart memcached
+echo 'flush_all' | nc -v -q 2 localhost 11211
 
-# 3. apache server ujrainditasa
+#~ 3. restart apache server
 /etc/init.d/apache2 restart
 




More information about the Hejes-devel mailing list