mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Restore mysql password from good directory
This commit is contained in:
parent
027ec16978
commit
4357b936c3
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue