From 421914473feb547f5e16e7fe3c6945e8758e7160 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Wed, 28 Mar 2018 20:55:57 +0200 Subject: installer fcgi --- mayor-installer-fcgi/setup | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'mayor-installer-fcgi/setup') diff --git a/mayor-installer-fcgi/setup b/mayor-installer-fcgi/setup index 3c13a155..0c523a89 100755 --- a/mayor-installer-fcgi/setup +++ b/mayor-installer-fcgi/setup @@ -12,21 +12,35 @@ export MAYORDIR export TMPDIR export MYSQLROOTPW export VERSION +export MAYORUSER="mayor-web" echo -e "A MaYoR keretrendszer és elektronikus napló telepítője a továbbiakban több lépésben, az egyes lépésekre jóváhagyást kérve fogja végrehajtani a telepítés és konfigurálás lépéseit. A telepítő egy tipikus telepítés esetén alkalmazható, speciális igények esetén -célszerűbb az egyes lépéseket a telepítési útmutató alapján manuálisan végezni.\n" +célszerűbb az egyes lépéseket a telepítési útmutató alapján manuálisan végezni. + +Lehetőség van a Mayor, az apache2 úgynevezett mod_uexec/mod_fcgi alá történő telepítésére is.\n" read -n 1 -p "Folytatja? (i/N)" -s DO if [ "$DO" != "i" ]; then echo " ok, kiléptem..."; exit 1; fi echo -e "\n" -for f in install.d/* +read -n 1 -p "Telepítés: (H)agyományos vagy (F)cgi/suexec-módban? (s/H)" -s DO +if [ "$DO" != "h" ]; then echo " ok, mod_Suexec/mod_fcgid használata." + installer="fcgi_install.d" + export MAYORDIR="/home/$MAYORUSER/mayor" +else + installer="install.d" + echo " ok, Hagyományos módon."; fi + echo -e "\n" + + + +for f in $installer/* do - echo -e "\n----------------------------------------------\n$f\n----------------------------------------------\n" + echo -e "\n----------------------------------------------\n$f\nMAYORDIR:$MAYORDIR\nMAYORUSER:$MAYORUSER\n----------------------------------------------\n" ./$f $@ if [ "$?" == 255 ]; then echo "Fatális hiba! A telepítő kilép."; exit 255; fi; done -- cgit v1.2.3