Parcourir la source

restore everything in hook script dirs

HgO il y a 1 an
Parent
commit
d6833546ae
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      scripts/restore

+ 2 - 3
scripts/restore

@@ -37,9 +37,8 @@ ynh_restore_file --origin_path="/etc/openvpn/client.conf" --not_mandatory
 ynh_restore_file --origin_path="/etc/openvpn/client.cube" --not_mandatory
 ynh_restore_file --origin_path="/etc/openvpn/client.ovpn" --not_mandatory
 
-for FILE in $(ls /etc/openvpn/scripts/route-up.d/*-vpnclient-* /etc/openvpn/scripts/route-down.d/*-vpnclient-*); do
-    ynh_restore_file --origin_path="$FILE"
-done
+ynh_restore_file --origin_path="/etc/openvpn/scripts/route-up.d/"
+ynh_restore_file --origin_path="/etc/openvpn/scripts/route-down.d/"
 
 ynh_restore_file --origin_path="/etc/openvpn/keys/"
 ynh_restore_file --origin_path="/etc/openvpn/scripts/run-parts.sh"