[Hejes-devel] [1727] completely replace Makefile with update_devel.sh

hejes-devel at nytud.hu hejes-devel at nytud.hu
Wed Mar 8 14:54:33 CET 2017


Revision: 1727
Author:   mittelholcz
Date:     2017-03-08 14:54:33 +0100 (Wed, 08 Mar 2017)
Log Message:
-----------
completely replace Makefile with update_devel.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:51:34 UTC (rev 1726)
+++ trunk/web2py/applications/helyesiras_webdev/update_htpdevel.sh	2017-03-08 13:54:33 UTC (rev 1727)
@@ -1,15 +1,35 @@
 #! /bin/bash
 
-# script, amit a 'helyes' group tagjai hasznalhatnak a clara-n levo
-# htp-devel frissitesere es ujrainditasara
+# Ezt a script-et a 'helyes' group tagjai hasznalhatjak a clara-n levo
+# htp-devel frissitesere es ujrainditasara.
+# 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.
 
-# ne hasznaljuk az 'svn update'-et, hasznaljuk helyette a make-et
-make update ;
-# esetlegesen frissitett update_htpdevel.sh ujbol futtathatova tetele
-chmod u+x /opt/web2py/applications/helyesiras_webdev/update_htpdevel.sh
-# memcached ujrainditasa
-make restart_memcached ;
-# apache ujrainditasa
-make restart ;
+echo -e 'Do not execute this file!\nexit'
+exit
 
 
+# test directory:
+DIR='/home/mittelholcz/work/helyesiras/trunk/web2py/applications/helyesiras_webdev'
+# DIR='/opt/web2py/applications/helyesiras_webdev/'
+
+# test user:group
+USERGROUP='mittelholcz:mittelholcz'
+#USERGROUP='www-data:www-data'
+
+
+
+# 1. htp-devel mogotti working copy frissitese, jogosultsagok beallitasa
+svn update ${DIR}
+chown -R ${USERGROUP} ${DIR}
+chmod -R g+w ${DIR}
+
+# 2. memcached ujrainditasa
+echo 'flush_all' | nc -q 2 localhost 11211
+
+# 3. apache server ujrainditasa
+/etc/init.d/apache2 restart
+




More information about the Hejes-devel mailing list