Browse Source

Fix upgrade

Maniack Crudelis 7 years ago
parent
commit
2dab0cd059
2 changed files with 2 additions and 2 deletions
  1. 1 1
      manifest.json
  2. 1 1
      scripts/upgrade

+ 1 - 1
manifest.json

@@ -6,7 +6,7 @@
 		"en": "Network-wide ad blocking via your own DNS server.",
 		"fr": "Filtrage publicitaire sur l'ensemble du réseau via votre propre serveur DNS."
 	},
-	"version": "3.3.1~ynh2",
+	"version": "3.3.1~ynh3",
 	"url": "https://pi-hole.net/",
 	"license": "EUPL-1.2",
 	"maintainer": {

+ 1 - 1
scripts/upgrade

@@ -67,10 +67,10 @@ ynh_install_app_dependencies $app_depencencies
 # DOWNLOAD, CHECK AND UNPACK SOURCE
 #=================================================
 
+pihole_local_repo="/etc/.pihole"
 if [ "$upgrade_type" == "UPGRADE_APP" ]
 then
 	# Update la copie du repo de pihole (nécessaire pour Gravity)
-	pihole_local_repo="/etc/.pihole"
 	ynh_setup_source "$pihole_local_repo"
 	# Update le dashboard admin
 	ynh_setup_source "$final_path" admin_dashboard