From ee1f3cd176d49e4fcf2ff18908d8679a870fa532 Mon Sep 17 00:00:00 2001 From: HgO Date: Mon, 21 Aug 2023 10:52:04 +0200 Subject: [PATCH] fix restore --- scripts/backup | 5 +---- scripts/restore | 6 ++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/backup b/scripts/backup index 8634184..793ab93 100644 --- a/scripts/backup +++ b/scripts/backup @@ -40,10 +40,7 @@ ynh_print_info --message="Declaring files to be backed up..." # BACKUP THE APP MAIN DIR #================================================= -for FILE in $(ls /etc/hostapd/hostapd.*.conf 2>/dev/null) -do - ynh_backup --src_path="$FILE" -done +ynh_backup --src_path="/etc/hostapd/hostapd.conf" ynh_backup --src_path="/etc/dnsmasq.dhcpd/dhcpdv6.conf.tpl" ynh_backup --src_path="/etc/dnsmasq.dhcpd/dhcpdv4.conf.tpl" diff --git a/scripts/restore b/scripts/restore index ee9580e..4c4ff7e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -61,10 +61,8 @@ else pkg_dependencies="$pkg_dependencies $free_firmware_packages" fi -for FILE in $(ls /etc/hostapd/hostapd.conf{.tpl?,} 2>/dev/null) -do - ynh_restore_file --origin_path="$FILE" -done +ynh_restore_file --origin_path="/etc/hostapd/hostapd.conf" + ynh_restore_file --origin_path="/etc/dnsmasq.dhcpd/dhcpdv6.conf.tpl" ynh_restore_file --origin_path="/etc/dnsmasq.dhcpd/dhcpdv4.conf.tpl"