From f83c3e8b18b22096d8b7ef27988a957fd3ca744a Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 17 Jun 2023 22:16:35 +0200 Subject: [PATCH 1/7] Add autoupdater --- manifest.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifest.toml b/manifest.toml index bec8039..3a20f55 100644 --- a/manifest.toml +++ b/manifest.toml @@ -44,6 +44,12 @@ ram.runtime = "50M" i386.url = "https://github.com/ngoduykhanh/wireguard-ui/releases/download/v0.5.0/wireguard-ui-v0.5.0-linux-386.tar.gz" i386.sha256 = "595493c3a197049d0f02ad15c01080456e1f7ea23a8eaf0d05b51f7ce35875e2" + autoupdate.strategy = "latest_github_release" + autoupdate.asset.arm64 = ".*-arm64.tar.gz" + autoupdate.asset.amd64 = ".*-amd64.tar.gz" + autoupdate.asset.armhf = ".*-arm.tar.gz" + autoupdate.asset.i386 = ".*-386.tar.gz" + [resources.ports] main.default = 8096 wg.default = 8095 From cfd8aff9c5c430db207ecf396fd1d4640c3ad945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 17 Aug 2023 08:51:43 +0200 Subject: [PATCH 2/7] 0.5.2 --- manifest.toml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/manifest.toml b/manifest.toml index 3a20f55..956a365 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "WireGuard" description.en = "Fast and modern VPN server, including a configuration webapp" description.fr = "Serveur VPN rapide et moderne, incluant une webapp pour le configurer" -version = "0.5.0~ynh1" +version = "0.5.2~ynh1" maintainers = ["tituspijean"] @@ -15,7 +15,7 @@ website = "https://www.wireguard.com/" code = "https://github.com/ngoduykhanh/wireguard-ui" [integration] -yunohost = ">= 11.1.19" +yunohost = ">= 11.2" architectures = "all" multi_instance = false ldap = false @@ -35,14 +35,14 @@ ram.runtime = "50M" [resources] [resources.sources.main] in_subdir = false - arm64.url = "https://github.com/ngoduykhanh/wireguard-ui/releases/download/v0.5.0/wireguard-ui-v0.5.0-linux-arm64.tar.gz" - arm64.sha256 = "1a49f6cfc6b3abfe0c4a0ce5998e0f82c29cd59735c8fa3bdbf05ef1d2087224" - amd64.url = "https://github.com/ngoduykhanh/wireguard-ui/releases/download/v0.5.0/wireguard-ui-v0.5.0-linux-amd64.tar.gz" - amd64.sha256 = "fd974152d57a8fba9f9797c3ef1d330542639cb8863c36e99782152de0e17460" - armhf.url = "https://github.com/ngoduykhanh/wireguard-ui/releases/download/v0.5.0/wireguard-ui-v0.5.0-linux-arm.tar.gz" - armhf.sha256 = "0695da19fe9348048d0700dccead116bf7b59436dd5ccbc8c9bdc232315bac4d" - i386.url = "https://github.com/ngoduykhanh/wireguard-ui/releases/download/v0.5.0/wireguard-ui-v0.5.0-linux-386.tar.gz" - i386.sha256 = "595493c3a197049d0f02ad15c01080456e1f7ea23a8eaf0d05b51f7ce35875e2" + arm64.url = "https://github.com/ngoduykhanh/wireguard-ui/releases/download/v0.5.2/wireguard-ui-v0.5.2-linux-arm64.tar.gz" + arm64.sha256 = "024eb6da74f450a0f2715cc233573b714fdba14dbf9fd229ed1479bbd4e83ea6" + amd64.url = "https://github.com/ngoduykhanh/wireguard-ui/releases/download/v0.5.2/wireguard-ui-v0.5.2-linux-amd64.tar.gz" + amd64.sha256 = "f1f13fbc548cd28bf41e9517ccb2e3564f4d9f893d174bfa20f7a61d18e954c5" + armhf.url = "https://github.com/ngoduykhanh/wireguard-ui/releases/download/v0.5.2/wireguard-ui-v0.5.2-linux-arm.tar.gz" + armhf.sha256 = "b15c8ff43d09fa1d63aa63aa185a8a5b9f4ece02ebf67e9aa5152888d4a6be6b" + i386.url = "https://github.com/ngoduykhanh/wireguard-ui/releases/download/v0.5.2/wireguard-ui-v0.5.2-linux-386.tar.gz" + i386.sha256 = "60e2f0005f60b01e10feb65941fa2ad6e919cde1d8004eaacca713a4cea0ee7d" autoupdate.strategy = "latest_github_release" autoupdate.asset.arm64 = ".*-arm64.tar.gz" From dfb5173e711f7474b9b2e698fd1198e9358c9f4b Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 17 Aug 2023 06:51:48 +0000 Subject: [PATCH 3/7] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc8f055..1bb4903 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in WireGuard® is fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN. -**Shipped version:** 0.5.0~ynh1 +**Shipped version:** 0.5.2~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index acd6be3..5f2e100 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po WireGuard® is fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN. -**Version incluse :** 0.5.0~ynh1 +**Version incluse :** 0.5.2~ynh1 ## Captures d’écran From 82ca7c4eeebd1f3d23022a0527c0cff4d90d246c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 17 Aug 2023 09:05:32 +0200 Subject: [PATCH 4/7] Create DESCRIPTION_fr.md --- doc/DESCRIPTION_fr.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/DESCRIPTION_fr.md diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md new file mode 100644 index 0000000..989e86a --- /dev/null +++ b/doc/DESCRIPTION_fr.md @@ -0,0 +1 @@ +WireGuard® est un VPN rapide et moderne qui utilise une cryptographie de pointe. Il vise à être plus rapide, plus simple, plus léger et plus utile qu'IPsec. Il a l'intention d'être considérablement plus performant qu'OpenVPN. WireGuard est conçu comme un VPN à usage général. From 2ac41c414d61cdc2dde747dcc9a4c9a36c9d865c Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 17 Aug 2023 07:05:42 +0000 Subject: [PATCH 5/7] Auto-update README --- README_fr.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README_fr.md b/README_fr.md index 5f2e100..bd79fbe 100644 --- a/README_fr.md +++ b/README_fr.md @@ -16,7 +16,8 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po ## Vue d’ensemble -WireGuard® is fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN. +WireGuard® est un VPN rapide et moderne qui utilise une cryptographie de pointe. Il vise à être plus rapide, plus simple, plus léger et plus utile qu'IPsec. Il a l'intention d'être considérablement plus performant qu'OpenVPN. WireGuard est conçu comme un VPN à usage général. + **Version incluse :** 0.5.2~ynh1 From 4cb1a72736d6c49fabacc927f39d78f532ecbac8 Mon Sep 17 00:00:00 2001 From: astrowalker2013 <32897635+astrowalker2013@users.noreply.github.com> Date: Sun, 30 Jul 2023 22:55:24 +0200 Subject: [PATCH 6/7] Update remove : delete wg0 in case of remove the application it should be possible to remove the wg0 interface. in order to create another installation in the future. --- scripts/remove | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/remove b/scripts/remove index 81e67fd..837b567 100644 --- a/scripts/remove +++ b/scripts/remove @@ -71,7 +71,10 @@ ynh_remove_logrotate #================================================= # SPECIFIC REMOVE +# Delete the wg0 interface #================================================= +ip link delete wg0 +#============================================= # REMOVE VARIOUS FILES #================================================= From ef86b07b209785aae45f95d5700d5a9f9c561afb Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 17 Aug 2023 13:25:52 +0200 Subject: [PATCH 7/7] Make sure to stop the wireguard service to close the interface --- scripts/remove | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/remove b/scripts/remove index 837b567..3b10d86 100644 --- a/scripts/remove +++ b/scripts/remove @@ -34,6 +34,9 @@ fi #================================================= ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1 +# Stop wg-quick service +systemctl stop wg-quick@wg0 + # YunoHost does not handle services not ending with .service, let's remove it manually systemctl stop wireguard@wg0.path systemctl disable wireguard@wg0.path --quiet @@ -71,10 +74,7 @@ ynh_remove_logrotate #================================================= # SPECIFIC REMOVE -# Delete the wg0 interface #================================================= -ip link delete wg0 -#============================================= # REMOVE VARIOUS FILES #=================================================