diff options
author | M.Gergo | 2018-07-06 11:13:06 +0200 |
---|---|---|
committer | M.Gergo | 2018-07-06 11:13:06 +0200 |
commit | 50310b0e4513ee3fcce67351ae61e8fff851130e (patch) | |
tree | fd2e4a73f94a61cd5040f863579149ed97c701a3 /mayor-installer-fcgi-mod/fcgi_install.d/20mysql.sh | |
parent | 630f5353ed7a264b0fa17badd62f71a02265a4f7 (diff) | |
download | mayor-50310b0e4513ee3fcce67351ae61e8fff851130e.tar.gz mayor-50310b0e4513ee3fcce67351ae61e8fff851130e.zip |
Mappák átnevezve: mayor --> mayor-mod; mayor-installer --> mayor-installer-mod; mayor-installer-fcgi --> mayor-installer-fcgi-mod
Diffstat (limited to 'mayor-installer-fcgi-mod/fcgi_install.d/20mysql.sh')
-rwxr-xr-x | mayor-installer-fcgi-mod/fcgi_install.d/20mysql.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mayor-installer-fcgi-mod/fcgi_install.d/20mysql.sh b/mayor-installer-fcgi-mod/fcgi_install.d/20mysql.sh new file mode 100755 index 00000000..7ae70bfb --- /dev/null +++ b/mayor-installer-fcgi-mod/fcgi_install.d/20mysql.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# + +cat <<EOF +MySQL szerver beállításai + +A rendszer adatbázisai UTF-8 kódolásúak, ennek megfelelően kell +beállítani a MySQL-t is. A beállításokat a /etc/mysql/conf.d +alá helyezi el a telepítő utf8.cnf néven, majd újraindítja az +adatbázis szervert. + +EOF + +read -n 1 -p "A MySQL szerver beállításait módosíthatom? (i/N)" -s DO +if [ "$DO" != "i" ]; then echo -e "\nA MySQL beállításait nem módosítottam.\n"; exit 1; fi + +echo -e "\nMySQL beállítások" +echo -n " utf8.cnf ... " + +echo "[mysqld] + character-set-server = utf8 + collation-server = utf8_hungarian_ci + " > /etc/mysql/conf.d/utf8.cnf + +#cp -f $MAYORDIR/install/base/mysql/utf8.cnf /etc/mysql/conf.d +echo ok +/etc/init.d/mysql restart + +if [ "x${RELEASE}" == "x9" ] +then + echo -e "\nMariaDB/MySQL beállítások" + echo -n " futtatom a mysql_Secure_installation scriptet: " + mysql_secure_installation +fi |