Parcourir la source

[fix] install broken by secret feature

zamentur il y a 8 ans
Parent
commit
a95b662625
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      scripts/install

+ 3 - 2
scripts/install

@@ -2,6 +2,9 @@
 
 set -eu
 
+# Source YunoHost helpers
+. /usr/share/yunohost/helpers
+
 app=$YNH_APP_INSTANCE_NAME
 
 # Retrieve arguments
@@ -22,8 +25,6 @@ cnil_number=$YNH_APP_ARG_CNIL_NUMBER
 url_contact=$YNH_APP_ARG_URL_CONTACT
 secret=$(ynh_string_random 120)
 
-# Source YunoHost helpers
-. /usr/share/yunohost/helpers
 
 # Check if admin exists
 ynh_user_exists $admin \