From 65076ca807b7f0f6cacd05bff8b3df7d04ed3ccc Mon Sep 17 00:00:00 2001 From: anmol Date: Wed, 14 Oct 2020 08:39:43 +0530 Subject: [PATCH] Fix string error --- manifest.json | 4 ++-- scripts/install | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 3500c581..4684cdd6 100644 --- a/manifest.json +++ b/manifest.json @@ -52,8 +52,8 @@ "en": "Choose the database to be used for the Hubzilla [mysql:1,postgresql:2]", "fr": "Choisissez la database de l'Hubzilla [mysql:1,postgresql:2]" }, - "choices": [1, 2], - "default": 1 + "choices": ["1", "2"], + "default": "1" } ] } } diff --git a/scripts/install b/scripts/install index 0f4aadc9..0d46cf03 100755 --- a/scripts/install +++ b/scripts/install @@ -30,8 +30,8 @@ admin=$YNH_APP_ARG_ADMIN email=$(sudo yunohost user info $admin | grep "mail:" | cut -d' ' -f2) upload="256M" random_string="$(ynh_string_random)$(ynh_string_random)$(ynh_string_random)" -database=$YNH_APP_ARG_DATABASE -database=expr $database +database=`expr $YNH_APP_ARG_DATABASE` + ### If it's a multi-instance app, meaning it can be installed several times independently ### The id of the app as stated in the manifest is available as $YNH_APP_ID ### The instance number is available as $YNH_APP_INSTANCE_NUMBER (equals "1", "2", ...)