Use getop for helpers

This commit is contained in:
Josué Tille
2019-08-01 14:01:59 +02:00
parent 7f57b92170
commit c09462555a
6 changed files with 19 additions and 20 deletions

View File

@ -22,17 +22,17 @@ domain=$(ynh_app_setting_get --app $app --key domain)
#=================================================
# Copy the app source files
ynh_backup "$final_path"
ynh_backup --src_path "$final_path"
# Copy the data files
ynh_backup "$DATADIR"
ynh_backup --src_path "$DATADIR"
# Copy the conf files
ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf"
ynh_backup "/etc/systemd/system/${app}.service"
ynh_backup --src_path "/etc/nginx/conf.d/${domain}.d/${app}.conf"
ynh_backup --src_path "/etc/systemd/system/${app}.service"
# Backup logs
ynh_backup "/var/log/$app"
ynh_backup --src_path "/var/log/$app"
# Dump the database
ynh_mysql_dump_db "$dbname" > ./db.sql