From 3dab26c6797b32926287f22a041380080551060b Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 20:50:48 +0100 Subject: pici rendrakás --- .../install.d/15createconfig.sh | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 mayor-installer/mayor-installer-orig/install.d/15createconfig.sh (limited to 'mayor-installer/mayor-installer-orig/install.d/15createconfig.sh') diff --git a/mayor-installer/mayor-installer-orig/install.d/15createconfig.sh b/mayor-installer/mayor-installer-orig/install.d/15createconfig.sh new file mode 100755 index 00000000..51c512c4 --- /dev/null +++ b/mayor-installer/mayor-installer-orig/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