mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
fix restore
This commit is contained in:
parent
40534c2ac4
commit
ee1f3cd176
2 changed files with 3 additions and 8 deletions
|
@ -40,10 +40,7 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
# BACKUP THE APP MAIN DIR
|
# BACKUP THE APP MAIN DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
for FILE in $(ls /etc/hostapd/hostapd.*.conf 2>/dev/null)
|
ynh_backup --src_path="/etc/hostapd/hostapd.conf"
|
||||||
do
|
|
||||||
ynh_backup --src_path="$FILE"
|
|
||||||
done
|
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/dnsmasq.dhcpd/dhcpdv6.conf.tpl"
|
ynh_backup --src_path="/etc/dnsmasq.dhcpd/dhcpdv6.conf.tpl"
|
||||||
ynh_backup --src_path="/etc/dnsmasq.dhcpd/dhcpdv4.conf.tpl"
|
ynh_backup --src_path="/etc/dnsmasq.dhcpd/dhcpdv4.conf.tpl"
|
||||||
|
|
|
@ -61,10 +61,8 @@ else
|
||||||
pkg_dependencies="$pkg_dependencies $free_firmware_packages"
|
pkg_dependencies="$pkg_dependencies $free_firmware_packages"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for FILE in $(ls /etc/hostapd/hostapd.conf{.tpl?,} 2>/dev/null)
|
ynh_restore_file --origin_path="/etc/hostapd/hostapd.conf"
|
||||||
do
|
|
||||||
ynh_restore_file --origin_path="$FILE"
|
|
||||||
done
|
|
||||||
ynh_restore_file --origin_path="/etc/dnsmasq.dhcpd/dhcpdv6.conf.tpl"
|
ynh_restore_file --origin_path="/etc/dnsmasq.dhcpd/dhcpdv6.conf.tpl"
|
||||||
ynh_restore_file --origin_path="/etc/dnsmasq.dhcpd/dhcpdv4.conf.tpl"
|
ynh_restore_file --origin_path="/etc/dnsmasq.dhcpd/dhcpdv4.conf.tpl"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue