Browse Source

[fix] Remove old service openvpn file

ljf 3 years ago
parent
commit
b12f7b1ad2
2 changed files with 9 additions and 1 deletions
  1. 1 1
      manifest.json
  2. 8 0
      scripts/upgrade

+ 1 - 1
manifest.json

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

+ 8 - 0
scripts/upgrade

@@ -80,6 +80,14 @@ if [ -z "$ip6_net" ]; then
     ynh_app_setting_set --app=$app --key=ip6_net --value=""
 fi
 
+#=================================================
+# UPGRADE FROM BUSTER TO BULLSEYE
+#=================================================
+
+if [ -e "/etc/systemd/system/openvpn@.service" ]; then
+  ynh_secure_remove "/etc/systemd/system/openvpn@.service"
+fi
+
 ##=================================================
 ## BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
 ##=================================================