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/60portal.sh | |
parent | 20a9412f1f5bc7b7e40ffb24e262cdf20420983c (diff) | |
download | mayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.tar.gz mayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.zip |
installer javítás 1
Diffstat (limited to 'mayor-installer/install.d/60portal.sh')
-rwxr-xr-x | mayor-installer/install.d/60portal.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mayor-installer/install.d/60portal.sh b/mayor-installer/install.d/60portal.sh index e8ccfe90..62d5353e 100755 --- a/mayor-installer/install.d/60portal.sh +++ b/mayor-installer/install.d/60portal.sh @@ -40,7 +40,7 @@ echo -e "\nA porál modul konfigurációs állományának létrehozása" file="module-portal/config.php" if [ -e "${MAYORDIR}/config/${file}" ]; then echo " $file létezik."; else echo -n " $file.example --> " - PW=`pwgen -s1` + PW=$(pwgen -s1 32) if [ "$ROVID" = "" ]; then ROVID="demo" fi @@ -53,16 +53,16 @@ if [ ! -d $TMPDIR/mysql ]; then mkdir -p $TMPDIR/mysql fi cd $TMPDIR/mysql -PDB=`grep db $MAYORDIR/config/$file | sed -e "s/.*=\ *['\"]//g" -e "s/['\"];//g"` -USER=`grep user $MAYORDIR/config/$file | sed -e "s/.*=\ *['\"]//g" -e "s/['\"];//g"` -PW=`grep pw $MAYORDIR/config/$file | sed -e "s/.*=\ *['\"]//g" -e "s/['\"];//g"` +PDB=$(grep db $MAYORDIR/config/$file | sed -e "s/.*=\ *['\"]//g" -e "s/['\"];//g") +USER=$(grep user $MAYORDIR/config/$file | sed -e "s/.*=\ *['\"]//g" -e "s/['\"];//g") +PW=$(grep pw $MAYORDIR/config/$file | sed -e "s/.*=\ *['\"]//g" -e "s/['\"];//g") cat $MAYORDIR/install/mayor-portal/mysql/mayor-portal.sql | sed \ -e "s/%MYSQL_PORTAL_DB%/$PDB/g" \ -e "s/%MYSQL_PORTAL_USER%/$USER/g" \ -e "s/%MYSQL_PORTAL_PW%/$PW/g" > mayor-portal.sql -DB=`grep db $MAYORDIR/config/private-conf.php | sed -e "s/^.*>\ *['|\"]//g" -e "s/['|\"],//g"` +DB=$(grep db $MAYORDIR/config/private-conf.php | sed -e "s/^.*>\ *['|\"]//g" -e "s/['|\"],//g") cat $MAYORDIR/install/mayor-portal/mysql/portal-init.sql | sed \ -e "s/%MYSQL_PRIVATE_DB%/$DB/g" \ -e "s/%MYSQL_PORTAL_DB%/$PDB/g" > portal-init.sql |