X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=52a5f7ac38db6dda313379977f3d440b9cde2399;hb=bea179edf76c1b86a45e60442a677f1490eeb46d;hp=e959c3d25a1a48bff8602dc37ccf0bd548d18847;hpb=d610b7bdcfe904aef7f8a90321e8dfc91051d488;p=mariadb-cn.git diff --git a/debian/postinst b/debian/postinst index e959c3d..52a5f7a 100755 --- a/debian/postinst +++ b/debian/postinst @@ -48,7 +48,7 @@ if [ -z "$rootmycnf" ]; then if echo | mysql mysql 2> /dev/null; then mypwd="`makepasswd`" mysqladmin password $mypwd - cp_echo "CN: Password for MySQL administrator (root@localhost) is: $mypwd" + cp_echo "CN: Zaporka za MariaDB administratora (root@localhost) je: $mypwd" cp_mail $PKG fi fi @@ -56,16 +56,18 @@ fi if su - nobody -c '[ -r ~root/.my.cnf ]' 2>&1 > /dev/null; then if grep -q "password.*=" ~root/.my.cnf; then - echo "CN: WARNING: ~root/.my.cnf is world readable." + echo "CN: UPOZORENJE: datoteka ~root/.my.cnf je svima citljiva." fi fi [ "$restart" = "yes" ] || exit 0 # restart mysql-a -if [ -x /usr/sbin/invoke-rc.d ]; then - [ -x /etc/init.d/mysql ] && invoke-rc.d mysql restart -else - [ -x /etc/init.d/mysql ] && /etc/init.d/mysql restart -fi +#if [ -x /usr/sbin/invoke-rc.d ]; then +# [ -x /etc/init.d/mysql ] && invoke-rc.d mysql restart +#else +# [ -x /etc/init.d/mysql ] && /etc/init.d/mysql restart +#fi + +invoke-rc.d mysql restart #DEBHELPER#