From ecad8101e0f90128674279d076d3aca0eb8b892e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 25 May 2024 12:54:59 +0200 Subject: [PATCH] Fix : $app -> restic --- scripts/install | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 04f7352..0afffb8 100755 --- a/scripts/install +++ b/scripts/install @@ -38,22 +38,22 @@ mkdir -p /usr/share/yunohost/backup_method _ynh_add_config_j2 --template="backup_method.j2" --destination="/etc/yunohost/hooks.d/backup_method/05-${app}_app" chmod go=--- "/etc/yunohost/hooks.d/backup_method/05-${app}_app" -_ynh_add_config_j2 --template="backup-with-restic.j2" --destination="$install_dir/backup-with-${app}" +_ynh_add_config_j2 --template="backup-with-restic.j2" --destination="$install_dir/backup-with-restic" chmod u+x "$install_dir/backup-with-restic" ## Check method -_ynh_add_config_j2 --template="check_method.j2" --destination="$install_dir/check_method_${app}" +_ynh_add_config_j2 --template="check_method.j2" --destination="$install_dir/check_method_restic" -_ynh_add_config_j2 --template="check-restic.j2" --destination="$install_dir/check-${app}" -chmod u+x "$install_dir/check-$app" +_ynh_add_config_j2 --template="check-restic.j2" --destination="$install_dir/check-restic" +chmod u+x "$install_dir/check-restic" ## Backup log script -_ynh_add_config_j2 --template="restic_log.j2" --destination="${install_dir}/restic_log_${app}" -chmod u+x "$install_dir/restic_log_${app}" +_ynh_add_config_j2 --template="restic_log.j2" --destination="$install_dir/restic_log" +chmod u+x "$install_dir/restic_log" # Check log script -_ynh_add_config_j2 --template="restic_check_log.j2" --destination="${install_dir}/restic_check_log_${app}" -chmod u+x "$install_dir/restic_check_log_${app}" +_ynh_add_config_j2 --template="restic_check_log.j2" --destination="$install_dir/restic_check_log" +chmod u+x "$install_dir/restic_check_log" chown -R "$app:$app" "$install_dir"