1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/xwiki_ynh.git synced 2024-09-03 20:36:11 +02:00

remove db

This commit is contained in:
Éric Gaspar 2023-04-10 11:24:08 +02:00
parent cd86390a44
commit 39607d8134
3 changed files with 7 additions and 7 deletions

View file

@ -55,7 +55,7 @@ ram.runtime = "50M"
main.url = "/"
[resources.apt]
packages = "mariadb-server openjdk-17-jdk"
packages = "openjdk-17-jdk" #mariadb-server
[resources.database]
type = "mysql"
#[resources.database]
#type = "mysql"

View file

@ -36,9 +36,9 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================
# BACKUP THE MYSQL DATABASE
#=================================================
ynh_print_info --message="Backing up the MySQL database..."
#ynh_print_info --message="Backing up the MySQL database..."
ynh_mysql_dump_db --database="$db_name" > db.sql
#ynh_mysql_dump_db --database="$db_name" > db.sql
#=================================================
# END OF SCRIPT

View file

@ -23,9 +23,9 @@ chown -R $app:www-data "$install_dir"
#=================================================
# RESTORE THE MYSQL DATABASE
#=================================================
ynh_script_progression --message="Restoring the MySQL database..." --weight=1
#ynh_script_progression --message="Restoring the MySQL database..." --weight=1
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
#ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
#=================================================
# RESTORE SYSTEM CONFIGURATIONS