Use = intead of space for helper args to avoid issue with parameter

This commit is contained in:
Josué Tille
2024-04-26 22:00:58 +02:00
parent a689129d2a
commit 414f6b7ad6
4 changed files with 17 additions and 17 deletions

View File

@ -19,23 +19,23 @@ fi
ynh_print_info --message='Declaring files to be backed up...'
# Copy the app source files
ynh_backup --src_path "$install_dir"
ynh_backup --src_path="$install_dir"
# Copy the data files
ynh_backup --src_path "$data_dir" --is_big=1
ynh_backup --src_path="$data_dir" --is_big=1
# Copy the conf files
ynh_backup --src_path "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf"
ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf"
ynh_backup --src_path="/etc/logrotate.d/$app"
ynh_backup --src_path "/etc/systemd/system/$app.service"
ynh_backup --src_path="/etc/systemd/system/$app.service"
# Backup logs
ynh_backup --src_path "/var/log/$app"
ynh_backup --src_path="/var/log/$app"
# Dump the database
ynh_print_info --message="Backing up the MySQL database"