Browse Source

Merge pull request #88 from YunoHost-Apps/testing

Testing
ljf (zamentur) 3 years ago
parent
commit
decbe089f3
4 changed files with 5 additions and 5 deletions
  1. 1 1
      README.md
  2. 1 1
      README_fr.md
  3. 1 1
      manifest.json
  4. 2 2
      scripts/config

+ 1 - 1
README.md

@@ -24,7 +24,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
 
 
 
 
 
 
-**Shipped version:** 2.0.2~ynh2
+**Shipped version:** 2.0.2~ynh4
 
 
 
 
 
 

+ 1 - 1
README_fr.md

@@ -20,7 +20,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
 
 
 
 
 
 
-**Version incluse :** 2.0.2~ynh2
+**Version incluse :** 2.0.2~ynh4
 
 
 
 
 
 

+ 1 - 1
manifest.json

@@ -6,7 +6,7 @@
     "en": "Tunnel the internet traffic through a VPN",
     "en": "Tunnel the internet traffic through a VPN",
     "fr": "Fait passer le trafic internet à travers un VPN"
     "fr": "Fait passer le trafic internet à travers un VPN"
   },
   },
-  "version": "2.0.2~ynh2",
+  "version": "2.0.2~ynh4",
   "url": "https://labriqueinter.net",
   "url": "https://labriqueinter.net",
   "license": "AGPL-3.0",
   "license": "AGPL-3.0",
   "maintainer": {
   "maintainer": {

+ 2 - 2
scripts/config

@@ -243,9 +243,9 @@ ynh_app_config_validate() {
 
 
         # Build specific OVPN template
         # Build specific OVPN template
         tmp_dir=$(dirname "${config_file}")
         tmp_dir=$(dirname "${config_file}")
-        cp -f /etc/openvpn/client.conf.tpl $tmp_dir/client.conf.tpl
+        cp -f /etc/yunohost/apps/vpnclient/conf/openvpn_client.conf.tpl $tmp_dir/client.conf.tpl
         # Remove some lines
         # Remove some lines
-        for rm_regex in $(jq --raw-output '.openvpn_rm[]' "${config_file}")
+        jq --raw-output '.openvpn_rm[]' "${config_file}" | while read -r rm_regex
         do
         do
             if [ ! -z "${rm_regex}" ] ; then
             if [ ! -z "${rm_regex}" ] ; then
                 sed -i "/$rm_regex/d" $tmp_dir/client.conf.tpl
                 sed -i "/$rm_regex/d" $tmp_dir/client.conf.tpl