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" architectures = "all"
multi_instance = true multi_instance = true
# FIXME: replace with true, false, or "not_relevant". #try whether integration is possible later on
# Not to confuse with the "sso" key: the "ldap" key corresponds to wether or not a user *can* login on the app using ldap = "false"
# its YunoHost credentials. sso = "false"
ldap = "?"
# 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" disk = "100M"
ram.build = "150M" ram.build = "150M"
ram.runtime = "100M" ram.runtime = "100M"
@ -51,9 +44,9 @@ ram.runtime = "100M"
type = "group" type = "group"
default = "visitors" default = "visitors"
# for now no credentials configured, make it install first
# [install.admin] # [install.admin]
# type = "user" # type = "user"
# [install.password] # [install.password]
# help.en = "Use the help field to add an information for the admin about this question." # 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." # 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, ### $app is the app id (i.e. 'example' for first install,
### or 'example__2', '__3'... for multi-instance installs) ### 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 # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================