1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/concrete5_ynh.git synced 2024-09-03 18:25:54 +02:00

Update backup

This commit is contained in:
frju365 2017-03-05 16:54:03 +01:00 committed by GitHub
parent 07ba91fb48
commit c73e67f218

View file

@ -23,10 +23,10 @@ domain=$(ynh_app_setting_get $app domain)
### MySQL (remove if not used) ###
# If a MySQL database is used:
# # Dump the database
dbname=$app
dbuser=$app
dbpass=$(ynh_app_setting_get "$app" mysqlpwd)
mysqldump -u "$dbuser" -p"$dbpass" --no-create-db "$dbname" > ./dump.sql
db_name=$app
db_user=$app
db_pass=$(ynh_app_setting_get "$app" mysqlpwd)
mysqldump -u "$db_user" -p"$db_pass" --no-create-db "$db_name" > ./dump.sql
### MySQL end ###