aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-installer/install.d/15createconfig.sh
diff options
context:
space:
mode:
authorM.Gergo2018-03-28 20:48:05 +0200
committerM.Gergo2018-03-28 20:48:05 +0200
commitcf30dceb15fa65f503c2a3f31f95b08ce1c65d35 (patch)
tree3d51eabdf4c9bc7a3daca03d265c052fb0601ac2 /mayor-installer/install.d/15createconfig.sh
parent20a9412f1f5bc7b7e40ffb24e262cdf20420983c (diff)
downloadmayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.tar.gz
mayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.zip
installer javítás 1
Diffstat (limited to 'mayor-installer/install.d/15createconfig.sh')
-rwxr-xr-xmayor-installer/install.d/15createconfig.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/mayor-installer/install.d/15createconfig.sh b/mayor-installer/install.d/15createconfig.sh
index 51c512c4..8d035fe1 100755
--- a/mayor-installer/install.d/15createconfig.sh
+++ b/mayor-installer/install.d/15createconfig.sh
@@ -14,7 +14,7 @@ read -n 1 -p "Létrehozzam a minták alapján a konfigurációs állományokat?
if [ "$DO" != "i" ]; then echo -e "\nA konfigurációs állományokat nem hoztam létre.\n"; exit 1; fi
if [ "$MAYORDIR" = "" ]; then echo "A MAYORDIR változó üres. Kilépek."; exit 1; fi
-PWGEN=`which pwgen`
+PWGEN=$(which pwgen)
if [ "${PWGEN}" = "" ]; then echo "A pwgen szoftver nincs telepítve."; exit 1; fi
echo -e "\nKonfigurációs állományok létrehozása:"
@@ -22,15 +22,15 @@ for file in main-config.php parent-conf.php private-conf.php public-conf.php
do
if [ -e "${MAYORDIR}/config/${file}" ]; then echo " $file létezik."; else
echo -n " $file.example --> "
- PW=`pwgen -s1`
+ PW=(pwgen -s1 32)
cat "$MAYORDIR/config/$file.example" | sed s/%SQLPW%/$PW/ > "$MAYORDIR/config/$file"
echo $file
fi
done
echo -n " module-naplo/config.php.example --> "
-PW=`pwgen -s1`
-PWREAD=`pwgen -s1`
+PW=$(pwgen -s1 32)
+PWREAD=$(pwgen -s1 32)
if [ -e "$MAYORDIR/config/module-naplo/config.php" ]; then echo " module-naplo/config.php létezik."; else
cat "$MAYORDIR/config/module-naplo/config.php.example" | sed -e s/%SQLPW%/$PW/ -e s/%SQLPWREAD%/$PWREAD/ > "$MAYORDIR/config/module-naplo/config.php"
echo "module-naplo/config.php"