From cf30dceb15fa65f503c2a3f31f95b08ce1c65d35 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Wed, 28 Mar 2018 20:48:05 +0200 Subject: installer javítás 1 --- mayor-installer/install.d/45intezmeny.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mayor-installer/install.d/45intezmeny.sh') diff --git a/mayor-installer/install.d/45intezmeny.sh b/mayor-installer/install.d/45intezmeny.sh index fc8eafeb..c41dda18 100755 --- a/mayor-installer/install.d/45intezmeny.sh +++ b/mayor-installer/install.d/45intezmeny.sh @@ -26,13 +26,13 @@ echo -e "\n" OMKOD="" while [ "$OMKOD" = "" ]; do read -p "Kérem az intézmény OM kódját: " OMKOD - OMKOD=`echo ${OMKOD} | sed "s/[^[0-9]]*//g"` + OMKOD=$(echo ${OMKOD} | sed "s/[^[0-9]]*//g") done read -p "Kérem az intézmény nevét: " INTEZMENYNEV ROVID="" while [ "$ROVID" = "" ]; do read -p "Kérem az intézmény rövid nevét (néhány karakteres rövidítés, mint \"vmg\", \"illyes\"...: " ROVID - ROVID=`echo ${ROVID} | sed "s/[^[:alnum:]]*//g" | sed "y, űáéúőóüöíŰÁÉÚŐÓÜÖÍ,_uaeuoouoiUAEUOOUOI," | sed 's/\(.*\)/\L\1/'` + ROVID=$(echo ${ROVID} | sed "s/[^[:alnum:]]*//g" | sed "y, űáéúőóüöíŰÁÉÚŐÓÜÖÍ,_uaeuoouoiUAEUOOUOI," | sed 's/\(.*\)/\L\1/') done echo -e "\nOM: ${OMKOD}; Rövidnév: ${ROVID}\n" @@ -40,9 +40,9 @@ echo -n " Az intézmény konfigurációs állománya: " cp "$MAYORDIR/config/module-naplo/config-pl.php.example" "$MAYORDIR/config/module-naplo/config-$ROVID.php" echo "$MAYORDIR/config/module-naplo/config-$ROVID.php" -DB=`grep db $MAYORDIR/config/module-naplo/config.php | grep naplo_base | sed -e "s/^.*=\ *['|\"]//g" -e "s/['|\"];//g"` -USER=`egrep 'userWrite.*=' $MAYORDIR/config/module-naplo/config.php | sed -e "s/^.*=\ *['|\"]//g" -e "s/['|\"];//g"` -USERREAD=`egrep 'userRead.*=' $MAYORDIR/config/module-naplo/config.php | sed -e "s/^.*=\ *['|\"]//g" -e "s/['|\"];//g"` +DB=$(grep db $MAYORDIR/config/module-naplo/config.php | grep naplo_base | sed -e "s/^.*=\ *['|\"]//g" -e "s/['|\"];//g") +USER=$(egrep 'userWrite.*=' $MAYORDIR/config/module-naplo/config.php | sed -e "s/^.*=\ *['|\"]//g" -e "s/['|\"];//g") +USERREAD=$(egrep 'userRead.*=' $MAYORDIR/config/module-naplo/config.php | sed -e "s/^.*=\ *['|\"]//g" -e "s/['|\"];//g") echo -e "\nAz adatbázis létrehozása\n" cat < $TMPDIR/mysql/intezmeny.sql -- cgit v1.2.3