Testing
@@ -25,7 +25,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
-**Shipped version:** 2.1.1~ynh1
+**Shipped version:** 2.1.2~ynh1
## Screenshots
@@ -25,7 +25,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
-**Version incluse :** 2.1.1~ynh1
+**Version incluse :** 2.1.2~ynh1
## Captures d’écran
@@ -42,5 +42,5 @@ route-ipv6 2000::/3
redirect-gateway def1 bypass-dhcp
script-security 2
-route-up "/usr/bin/run-parts /etc/openvpn/scripts/route-up.d"
-down "/usr/bin/run-parts /etc/openvpn/scripts/route-down.d"
+route-up "/etc/openvpn/scripts/run-parts.sh route-up"
+down "/etc/openvpn/scripts/run-parts.sh route-down"
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+run-parts -v /etc/openvpn/scripts/$1.d/
@@ -6,7 +6,7 @@
"en": "Tunnel the internet traffic through a VPN",
"fr": "Fait passer le trafic internet à travers un VPN"
},
- "version": "2.1.1~ynh1",
+ "version": "2.1.2~ynh1",
"url": "https://labriqueinter.net",
"license": "AGPL-3.0",
"maintainer": {
@@ -39,6 +39,7 @@ function vpnclient_deploy_files_and_services()
mkdir -pm 0775 /etc/openvpn/scripts
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/openvpn_run-parts.sh /etc/openvpn/scripts/run-parts.sh
#=================================================
@@ -36,6 +36,7 @@ ynh_backup "/etc/yunohost/hooks.d/90-vpnclient.tpl"
ynh_backup "/etc/openvpn/client.conf.tpl"
ynh_backup "/etc/openvpn/keys/"
+ynh_backup "/etc/openvpn/scripts/run-parts.sh"
ynh_backup "/usr/local/bin/$service_name"
ynh_backup "/usr/local/bin/$service_checker_name.sh"
@@ -64,6 +64,9 @@ ynh_print_info "Removing openvpn configuration"
ynh_secure_remove /etc/openvpn/client.conf
ynh_secure_remove /etc/openvpn/client.conf.tpl
+# Remove openvpn script
+ynh_secure_remove /etc/openvpn/scripts/run-parts.sh
# Remove YunoHost hook
ynh_secure_remove /etc/yunohost/hooks.d/90-vpnclient.tpl
@@ -34,6 +34,7 @@ ynh_restore_file "/etc/yunohost/hooks.d/90-vpnclient.tpl"
ynh_restore_file "/etc/openvpn/client.conf.tpl"
ynh_restore_file "/etc/openvpn/keys/"
+ynh_restore_file "/etc/openvpn/scripts/run-parts.sh"
ynh_restore_file "/usr/local/bin/$service_name"
ynh_restore_file "/usr/local/bin/$service_checker_name.sh"