Browse Source

Fix upgrade with DNS

Julien Vaubourg 9 years ago
parent
commit
3f6f482059
1 changed files with 7 additions and 0 deletions
  1. 7 0
      scripts/upgrade

+ 7 - 0
scripts/upgrade

@@ -29,6 +29,13 @@ sudo rm -r "${tmpdir}/"
 
 sudo yunohost app setting vpnclient gitcommit -v "${gitcommit}"
 
+# Changes
+
+if [ -z "$(ynh_setting vpnclient dns0)" ]; then
+  sudo yunohost app setting vpnclient dns0 -v 89.234.141.66
+  sudo yunohost app setting vpnclient dns1 -v 2001:913::8
+fi
+
 sudo systemctl start ynh-vpnclient
 
 exit 0