Browse Source

Merge branch 'testing' into auto-helpers-2.1

HgO 5 months ago
parent
commit
d2c97e50a4
16 changed files with 79 additions and 24 deletions
  1. 1 0
      ALL_README.md
  2. 1 1
      README.md
  3. 2 2
      README_es.md
  4. 1 1
      README_eu.md
  5. 1 1
      README_fr.md
  6. 1 1
      README_gl.md
  7. 1 1
      README_id.md
  8. 52 0
      README_nl.md
  9. 1 1
      README_ru.md
  10. 1 1
      README_zh_Hans.md
  11. 1 8
      config_panel.toml
  12. 1 1
      manifest.toml
  13. 0 1
      scripts/_common.sh
  14. 0 1
      scripts/backup
  15. 0 1
      scripts/remove
  16. 15 3
      scripts/upgrade

+ 1 - 0
ALL_README.md

@@ -6,5 +6,6 @@
 - [Lire le README en français](README_fr.md)
 - [Le o README en galego](README_gl.md)
 - [Baca README dalam bahasa bahasa Indonesia](README_id.md)
+- [Lees de README in het Nederlands](README_nl.md)
 - [Прочитать README на русский](README_ru.md)
 - [阅读中文(简体)的 README](README_zh_Hans.md)

+ 1 - 1
README.md

@@ -25,7 +25,7 @@ Install a VPN connection on your self-hosted server.
 
 
 
-**Shipped version:** 2.2~ynh5
+**Shipped version:** 2.2~ynh6
 
 ## Screenshots
 

+ 2 - 2
README_es.md

@@ -25,7 +25,7 @@ Install a VPN connection on your self-hosted server.
 
 
 
-**Versión actual:** 2.2~ynh5
+**Versión actual:** 2.2~ynh6
 
 ## Capturas
 
@@ -39,7 +39,7 @@ Install a VPN connection on your self-hosted server.
 
 ## Información para desarrolladores
 
-Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/vpnclient_ynh/tree/testing
+Por favor enviar sus correcciones a la [rama `testing`](https://github.com/YunoHost-Apps/vpnclient_ynh/tree/testing).
 
 Para probar la rama `testing`, sigue asÍ:
 

+ 1 - 1
README_eu.md

@@ -25,7 +25,7 @@ Install a VPN connection on your self-hosted server.
 
 
 
-**Paketatutako bertsioa:** 2.2~ynh5
+**Paketatutako bertsioa:** 2.2~ynh6
 
 ## Pantaila-argazkiak
 

+ 1 - 1
README_fr.md

@@ -25,7 +25,7 @@ Installez une connexion VPN sur votre serveur auto-hébergé
 
 
 
-**Version incluse :** 2.2~ynh5
+**Version incluse :** 2.2~ynh6
 
 ## Captures d’écran
 

+ 1 - 1
README_gl.md

@@ -25,7 +25,7 @@ Install a VPN connection on your self-hosted server.
 
 
 
-**Versión proporcionada:** 2.2~ynh5
+**Versión proporcionada:** 2.2~ynh6
 
 ## Capturas de pantalla
 

+ 1 - 1
README_id.md

@@ -25,7 +25,7 @@ Install a VPN connection on your self-hosted server.
 
 
 
-**Versi terkirim:** 2.2~ynh5
+**Versi terkirim:** 2.2~ynh6
 
 ## Tangkapan Layar
 

+ 52 - 0
README_nl.md

@@ -0,0 +1,52 @@
+<!--
+NB: Deze README is automatisch gegenereerd door <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
+Hij mag NIET handmatig aangepast worden.
+-->
+
+# VPN Client voor Yunohost
+
+[![Integratieniveau](https://dash.yunohost.org/integration/vpnclient.svg)](https://ci-apps.yunohost.org/ci/apps/vpnclient/) ![Mate van functioneren](https://ci-apps.yunohost.org/ci/badges/vpnclient.status.svg) ![Onderhoudsstatus](https://ci-apps.yunohost.org/ci/badges/vpnclient.maintain.svg)
+
+[![VPN Client met Yunohost installeren](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=vpnclient)
+
+*[Deze README in een andere taal lezen.](./ALL_README.md)*
+
+> *Met dit pakket kun je VPN Client snel en eenvoudig op een YunoHost-server installeren.*  
+> *Als je nog geen YunoHost hebt, lees dan [de installatiehandleiding](https://yunohost.org/install), om te zien hoe je 'm installeert.*
+
+## Overzicht
+
+Install a VPN connection on your self-hosted server.
+* Useful for hosting your server behind a filtered (and/or non-neutral) internet access.
+* Useful to have static IP addresses (IPv6 and IPv4).
+* Useful to easily move your server anywhere.
+* Strong firewalling (internet access and self-hosted services only available through the VPN, not leaking to your commercial ISP)
+* Combine with the [Hotspot app](https://github.com/YunoHost-Apps/hotspot_ynh) to broadcast VPN-protected WiFi to other laptops without any further technical configuration needed.
+
+
+
+**Geleverde versie:** 2.2~ynh6
+
+## Schermafdrukken
+
+![Schermafdrukken van VPN Client](./doc/screenshots/vpnclient.png)
+
+## Documentatie en bronnen
+
+- Officiele website van de app: <https://labriqueinter.net>
+- YunoHost-store: <https://apps.yunohost.org/app/vpnclient>
+- Meld een bug: <https://github.com/YunoHost-Apps/vpnclient_ynh/issues>
+
+## Ontwikkelaarsinformatie
+
+Stuur je pull request alsjeblieft naar de [`testing`-branch](https://github.com/YunoHost-Apps/vpnclient_ynh/tree/testing).
+
+Om de `testing`-branch uit te proberen, ga als volgt te werk:
+
+```bash
+sudo yunohost app install https://github.com/YunoHost-Apps/vpnclient_ynh/tree/testing --debug
+of
+sudo yunohost app upgrade vpnclient -u https://github.com/YunoHost-Apps/vpnclient_ynh/tree/testing --debug
+```
+
+**Verdere informatie over app-packaging:** <https://yunohost.org/packaging_apps>

+ 1 - 1
README_ru.md

@@ -25,7 +25,7 @@ Install a VPN connection on your self-hosted server.
 
 
 
-**Поставляемая версия:** 2.2~ynh5
+**Поставляемая версия:** 2.2~ynh6
 
 ## Снимки экрана
 

+ 1 - 1
README_zh_Hans.md

@@ -25,7 +25,7 @@ Install a VPN connection on your self-hosted server.
 
 
 
-**分发版本:** 2.2~ynh5
+**分发版本:** 2.2~ynh6
 
 ## 截图
 

+ 1 - 8
config_panel.toml

@@ -26,18 +26,11 @@ name = "Auto-configuration"
         [main.vpn.config_file]
         ask = "Configuration file"
         type = "file"
-        accept = [ ".cube", ".ovpn", ".conf" ]
+        accept = [".cube", ".ovpn", ".conf", "application/json", "text/plain"]
         help = ".cube file recommended, .ovpn file accepted"
         bind = "/etc/openvpn/client.conf"
         redact = true
 
-        [main.vpn.config_template]
-        type = "file"
-        bind = "/etc/openvpn/client.conf.tpl"
-        redact = true
-        optional = true
-        visible = false
-
         [main.vpn.cube_file]
         type = "file"
         bind = "/etc/openvpn/client.cube"

+ 1 - 1
manifest.toml

@@ -7,7 +7,7 @@ name = "VPN Client"
 description.en = "Tunnel the internet traffic through a VPN"
 description.fr = "Fait passer le trafic internet à travers un VPN"
 
-version = "2.2~ynh5"
+version = "2.2~ynh6"
 
 maintainers = []
 

+ 0 - 1
scripts/_common.sh

@@ -16,7 +16,6 @@ function vpnclient_deploy_files_and_services()
   mkdir -pm 0755 /etc/yunohost/hooks.d/post_iptable_rules/
   mkdir -pm 0755 /etc/systemd/system/openvpn@.service.d/
 
-  install -b -o root -g ${app} -m 0644 ../conf/openvpn_client.conf.tpl /etc/openvpn/client.conf.tpl
   install -b -o root -g root -m 0755 ../conf/hook_post-iptable-rules /etc/yunohost/hooks.d/90-vpnclient.tpl
   install -b -o root -g root -m 0644 ../conf/openvpn@.service /etc/systemd/system/openvpn@.service.d/override.conf
 

+ 0 - 1
scripts/backup

@@ -12,7 +12,6 @@ ynh_backup "/usr/local/bin/$service_name-loadcubefile.sh"
 
 ynh_backup "/etc/yunohost/hooks.d/90-vpnclient.tpl"
 
-ynh_backup "/etc/openvpn/client.conf.tpl"
 ynh_backup "/etc/openvpn/client.conf" || true
 ynh_backup "/etc/openvpn/client.cube" || true
 ynh_backup "/etc/openvpn/client.ovpn" || true

+ 0 - 1
scripts/remove

@@ -30,7 +30,6 @@ ynh_print_info "Removing openvpn configuration"
 
 # Remove openvpn configurations
 ynh_safe_rm /etc/openvpn/client.conf
-ynh_safe_rm /etc/openvpn/client.conf.tpl
 ynh_safe_rm /etc/openvpn/client.cube
 ynh_safe_rm /etc/openvpn/client.ovpn
 

+ 15 - 3
scripts/upgrade

@@ -36,6 +36,10 @@ if [ -e "/etc/sudoers.d/${app}_ynh" ]; then
   ynh_safe_rm "/etc/sudoers.d/${app}_ynh"
 fi
 
+if [ -e "/etc/openvpn/client.conf.tpl" ]; then
+  ynh_secure_remove "/etc/openvpn/client.conf.tpl"
+fi
+
 # New stuff
 
 if [ -z "${dns_method:-}" ]; then
@@ -75,7 +79,11 @@ yunohost service stop $service_name
 
 # Keep a copy of existing config files before overwriting them
 tmp_dir=$(mktemp -d /tmp/vpnclient-upgrade-XXX)
-cp -r /etc/openvpn/client* ${tmp_dir}
+for config_file in /etc/openvpn/client.{conf,cube,ovpn}; do
+  if [[ -f "${config_file}" ]]; then
+    cp "${config_file}" "${tmp_dir}/"
+  fi
+done
 
 # Deploy files from package
 vpnclient_deploy_files_and_services
@@ -97,8 +105,12 @@ then
 fi
 
 # Restore previously existing config files
-cp -r ${tmp_dir}/client* /etc/openvpn/
-ynh_safe_rm ${tmp_dir}
+for config_file in ${tmp_dir}/client.{conf,cube,ovpn}; do
+  if [[ -f "${config_file}" ]]; then
+    cp "${config_file}" /etc/openvpn/
+  fi
+done
+ynh_safe_remove ${tmp_dir}
 
 #=================================================
 # SERVICE INTEGRATION IN YUNOHOST