magikcypress 8 år sedan
förälder
incheckning
4483bef6ad
3 ändrade filer med 9 tillägg och 9 borttagningar
  1. 3 3
      scripts/backup
  2. 3 3
      scripts/remove
  3. 3 3
      scripts/restore

+ 3 - 3
scripts/backup

@@ -3,12 +3,12 @@
 # Exit on command errors and treat unset variables as an error
 set -eu
 
-# Get multi-instances specific variables
-app=$YNH_APP_INSTANCE_NAME
-
 # Source app helpers
 source /usr/share/yunohost/helpers
 
+# Get multi-instances specific variables
+app=$YNH_APP_INSTANCE_NAME
+
 # Retrieve app settings
 domain=$(ynh_app_setting_get "$app" domain)
 

+ 3 - 3
scripts/remove

@@ -3,12 +3,12 @@
 # Exit on command errors and treat unset variables as an error
 set -u
 
+# Source app helpers
+source /usr/share/yunohost/helpers
+
 # Get multi-instances specific variables
 app=$YNH_APP_INSTANCE_NAME
 
-# Source app helpers
-. /usr/share/yunohost/helpers
-
 # Retrieve app settings
 domain=$(ynh_app_setting_get "$app" domain)
 # with_mysql=$(ynh_app_setting_get "$app" with_mysql)

+ 3 - 3
scripts/restore

@@ -4,12 +4,12 @@
 # Exit on command errors and treat unset variables as an error
 set -eu
 
-# The parameter $2 is the id of the app instance ex: ynhexample__2
-app=$YNH_APP_INSTANCE_NAME
-
 # Source app helpers
 source /usr/share/yunohost/helpers
 
+# The parameter $2 is the id of the app instance ex: ynhexample__2
+app=$YNH_APP_INSTANCE_NAME
+
 # Get old parameter of the app
 domain=$(ynh_app_setting_get $app domain)
 path=$(ynh_app_setting_get $app path)