diff --git a/manifest.json b/manifest.json index 9dc98ad..e76dca7 100644 --- a/manifest.json +++ b/manifest.json @@ -11,7 +11,7 @@ "maintainer": { "name": "scith, Djip007" }, - "multi_instance": "false", + "multi_instance": false, "services": [ "nginx", "php5-fpm", diff --git a/scripts/install b/scripts/install index c96ae3d..f588598 100644 --- a/scripts/install +++ b/scripts/install @@ -1,3 +1,5 @@ +#!/bin/bash + # Exit on command errors and treat unset variables as an error set -eu app=$YNH_APP_INSTANCE_NAME diff --git a/scripts/remove b/scripts/remove index bfed4a9..fcbc11e 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,3 +1,5 @@ +#!/bin/bash + # Exit on command errors and treat unset variables as an error set -eu app=$YNH_APP_INSTANCE_NAME diff --git a/scripts/restore b/scripts/restore index c26e989..50edf6c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -6,16 +6,14 @@ set -eu # Get multi-instances specific variables app=$YNH_APP_INSTANCE_NAME -# Set app specific variables -dbname=$app -dbuser=$app - # Source app helpers . /usr/share/yunohost/helpers # Retrieve old app settings domain=$(ynh_app_setting_get "$app" domain) path=$(ynh_app_setting_get "$app" path) +dbname=$app +dbuser=$app dbpass=$(ynh_app_setting_get "$app" mysqlpwd) # Check domain/path availability diff --git a/scripts/upgrade b/scripts/upgrade index a65b0bd..f7b726e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,3 +1,5 @@ +#!/bin/bash + # Exit on command errors and treat unset variables as an error set -eu app=$YNH_APP_INSTANCE_NAME