1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Update manifest.toml

This commit is contained in:
Éric Gaspar 2023-03-28 18:38:47 +02:00
parent 28e96e88e2
commit bafc403789

View file

@ -49,8 +49,8 @@ ram.runtime = "50M"
ask.en = "Choose a PHP version you want to use for your app"
ask.fr = "Choisissez une version PHP que vous souhaitez utiliser pour votre application"
type = "string"
choices = ["none", "7.3", "7.4", "8.0", "8.1", "8.2"]
default = "7.4"
choices = ["none", "7.4", "8.0", "8.1", "8.2"]
default = "8.0"
[install.with_mysql]
ask.en = "Do you need a MySQL database?"
@ -68,13 +68,17 @@ ram.runtime = "50M"
[resources.apt]
packages_from_raw_bash = """
if [[ "$phpversion" == "7.3" || "$phpversion" == "7.4" || "$phpversion" == "8.1" || "$phpversion" == "8.2" ]]
then
echo "mariadb-server"
elif [[ "$phpversion" == "none" ]]
then
echo ""
fi
if [[ "$with_mysql" = 1 ]]
then
echo "mariadb-server"
else
echo ""
fi
if [[ "$phpversion" != none ]]
then
echo "php${phpversion}-fpm php${phpversion}-mysql"
fi
"""
[resources.database]