From 20a9412f1f5bc7b7e40ffb24e262cdf20420983c Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Wed, 28 Mar 2018 19:57:59 +0200 Subject: mayor installer alap --- mayor-installer.fcgi/install.d/15createconfig.sh | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 mayor-installer.fcgi/install.d/15createconfig.sh (limited to 'mayor-installer.fcgi/install.d/15createconfig.sh') diff --git a/mayor-installer.fcgi/install.d/15createconfig.sh b/mayor-installer.fcgi/install.d/15createconfig.sh new file mode 100755 index 00000000..51c512c4 --- /dev/null +++ b/mayor-installer.fcgi/install.d/15createconfig.sh @@ -0,0 +1,43 @@ +#!/bin/bash +# + +cat < " + PW=`pwgen -s1` + 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` +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" +fi + +if [ -e "$MAYORDIR/config/skin-classic/naplo-config.php" ]; then echo " skin-classic/naplo-config.php létezik."; else + echo -n " skin-classic/naplo-config.php.example --> " + cp $MAYORDIR/config/skin-classic/naplo-config.php.example $MAYORDIR/config/skin-classic/naplo-config.php + echo "config/skin-classic/naplo-config.php" +fi -- cgit v1.2.3