install: proberen om ynh_composer_version mee te geven

This commit is contained in:
Boudewijn 2025-02-26 21:26:41 +01:00
parent 36f2025a0f
commit 945f289d91
2 changed files with 17 additions and 16 deletions

View file

@ -24,17 +24,10 @@ helpers_version = "2.1"
architectures = "all"
multi_instance = true
# FIXME: replace with true, false, or "not_relevant".
# Not to confuse with the "sso" key: the "ldap" key corresponds to wether or not a user *can* login on the app using
# its YunoHost credentials.
ldap = "?"
#try whether integration is possible later on
ldap = "false"
sso = "false"
# FIXME: replace with true, false, or "not_relevant".
# Not to confuse with the "ldap" key: the "sso" key corresponds to wether or not a user is *automatically logged-in*
# on the app when logged-in on the YunoHost portal.
sso = "?"
# FIXME: replace with an **estimate** minimum disk and RAM requirements. e.g. 20M, 400M, 1G...
disk = "100M"
ram.build = "150M"
ram.runtime = "100M"
@ -51,9 +44,9 @@ ram.runtime = "100M"
type = "group"
default = "visitors"
# for now no credentials configured, make it install first
# [install.admin]
# type = "user"
# [install.password]
# help.en = "Use the help field to add an information for the admin about this question."
# help.fr = "Utilisez le champ aide pour ajouter une information à l'intention de l'administrateur à propos de cette question."

View file

@ -26,6 +26,14 @@ source /usr/share/yunohost/helpers
### $app is the app id (i.e. 'example' for first install,
### or 'example__2', '__3'... for multi-instance installs)
#=================================================
# INITIALIZE AND STORE SETTINGS
#=================================================
# wbk fixme - check whether one of these work
$YNH_COMPOSER_VERSION="2.2.0"
ynh_app_setting_set --key=YNH_COMPOSER_VERSION --value=$(composer --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================