diff options
author | M.Gergo | 2018-03-28 20:48:05 +0200 |
---|---|---|
committer | M.Gergo | 2018-03-28 20:48:05 +0200 |
commit | cf30dceb15fa65f503c2a3f31f95b08ce1c65d35 (patch) | |
tree | 3d51eabdf4c9bc7a3daca03d265c052fb0601ac2 /mayor-installer/install.d/45intezmeny.sh | |
parent | 20a9412f1f5bc7b7e40ffb24e262cdf20420983c (diff) | |
download | mayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.tar.gz mayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.zip |
installer javítás 1
Diffstat (limited to 'mayor-installer/install.d/45intezmeny.sh')
-rwxr-xr-x | mayor-installer/install.d/45intezmeny.sh | 10 |
1 files changed, 5 insertions, 5 deletions
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 <<EOF > $TMPDIR/mysql/intezmeny.sql |