#!/bin/bash # cat < " 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 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" 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