Skip to content

Commit

Permalink
Allow specifying PHP version YunoHost-Apps#223
Browse files Browse the repository at this point in the history
  • Loading branch information
fflorent committed Oct 7, 2023
1 parent ca4dbc0 commit 12a54f8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ ram.runtime = "50M"
type = "group"
default = "visitors"

[install.phpversion]
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 = "select"
choices = ["8.0", "8.1", "8.2"]
default = "8.2"

[install.language]
ask.en = "Choose the application language"
ask.fr = "Choisissez la langue de l'application"
Expand Down Expand Up @@ -70,7 +77,11 @@ ram.runtime = "50M"
admin.show_tile = false

[resources.apt]
packages = "mariadb-server, php8.2-mysql, php8.2-curl, php8.2-mbstring, php8.2-xml, php8.2-zip, php8.2-gd, php8.2-soap, php8.2-ssh2, php8.2-tokenizer, php8.2-ldap"
packages = "mariadb-server"
packages_from_raw_bash = """
echo "php${phpversion}-mysql php${phpversion}-curl php${phpversion}-mbstring php${phpversion}-xml php${phpversion}-zip php${phpversion}-gd php${phpversion}-soap"
echo "php${phpversion}-ssh2 php${phpversion}-tokenizer php${phpversion}-ldap"
"""

[resources.database]
type = "mysql"

0 comments on commit 12a54f8

Please sign in to comment.