[fix] Restore mysql password from good directory

This commit is contained in:
zamentur 2015-10-02 22:57:06 +02:00
parent 027ec16978
commit 4357b936c3

View file

@ -1,5 +1,6 @@
backup_dir="$1/conf/mysql" backup_dir="$1/conf/ynh/mysql"
service mysql restart service mysql restart
sudo cp -a $backup_dir/mysql /etc/yunohost/mysql
mysqlpwd=$(sudo cat /etc/yunohost/mysql) mysqlpwd=$(sudo cat /etc/yunohost/mysql)
sudo mysqladmin flush-privileges -p"$mysqlpwd" sudo mysqladmin flush-privileges -p"$mysqlpwd"