Skip to content

Commit

Permalink
change ipv6 hook priority
Browse files Browse the repository at this point in the history
  • Loading branch information
HgO committed Nov 24, 2023
1 parent d26d25e commit abbe0a1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function vpnclient_deploy_files_and_services()
mkdir -pm 0775 /etc/openvpn/scripts/route-up.d
mkdir -pm 0775 /etc/openvpn/scripts/route-down.d
install -b -o root -g root -m 0755 ../conf/scripts/run-parts.sh /etc/openvpn/scripts/run-parts.sh
install -b -o root -g root -m 0755 ../conf/scripts/route-up.d/20-set-ipv6 /etc/openvpn/scripts/route-up.d/20-set-ipv6
install -b -o root -g root -m 0755 ../conf/scripts/route-down.d/20-unset-ipv6 /etc/openvpn/scripts/route-down.d/20-unset-ipv6
install -b -o root -g root -m 0755 ../conf/scripts/route-up.d/40-set-ipv6 /etc/openvpn/scripts/route-up.d/40-set-ipv6
install -b -o root -g root -m 0755 ../conf/scripts/route-down.d/40-unset-ipv6 /etc/openvpn/scripts/route-down.d/40-unset-ipv6

#=================================================

Expand Down
4 changes: 2 additions & 2 deletions scripts/backup
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ ynh_backup --src_path="/etc/openvpn/client.conf" --not_mandatory
ynh_backup --src_path="/etc/openvpn/client.cube" --not_mandatory
ynh_backup --src_path="/etc/openvpn/client.ovpn" --not_mandatory

ynh_backup --src_path="/etc/openvpn/scripts/route-up.d/20-set-ipv6"
ynh_backup --src_path="/etc/openvpn/scripts/route-down.d/20-unset-ipv6"
ynh_backup --src_path="/etc/openvpn/scripts/route-up.d/40-set-ipv6"
ynh_backup --src_path="/etc/openvpn/scripts/route-down.d/40-unset-ipv6"

ynh_backup --src_path="/etc/openvpn/keys/"
ynh_backup --src_path="/etc/openvpn/scripts/run-parts.sh"
Expand Down
4 changes: 2 additions & 2 deletions scripts/remove
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ ynh_secure_remove /etc/openvpn/client.ovpn

# Remove openvpn script
ynh_secure_remove /etc/openvpn/scripts/run-parts.sh
ynh_secure_remove "/etc/openvpn/scripts/route-up.d/20-set-ipv6"
ynh_secure_remove "/etc/openvpn/scripts/route-down.d/20-unset-ipv6"
ynh_secure_remove "/etc/openvpn/scripts/route-up.d/40-set-ipv6"
ynh_secure_remove "/etc/openvpn/scripts/route-down.d/40-unset-ipv6"

# Remove YunoHost hook
ynh_secure_remove /etc/yunohost/hooks.d/90-vpnclient.tpl
Expand Down
4 changes: 2 additions & 2 deletions scripts/restore
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +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

ynh_restore_file --origin_path="/etc/openvpn/scripts/route-up.d/20-set-ipv6"
ynh_restore_file --origin_path="/etc/openvpn/scripts/route-down.d/20-unset-ipv6"
ynh_restore_file --origin_path="/etc/openvpn/scripts/route-up.d/40-set-ipv6"
ynh_restore_file --origin_path="/etc/openvpn/scripts/route-down.d/40-unset-ipv6"

ynh_restore_file --origin_path="/etc/openvpn/keys/"
ynh_restore_file --origin_path="/etc/openvpn/scripts/run-parts.sh"
Expand Down

0 comments on commit abbe0a1

Please sign in to comment.