mirror of
https://github.com/YunoHost-Apps/cachet_ynh.git
synced 2024-09-03 18:16:03 +02:00
Fix bookworm by adding dependency on php7.4 and using $phpversion
This commit is contained in:
parent
2ba7366390
commit
c35374765f
2 changed files with 16 additions and 6 deletions
|
@ -1,3 +1,5 @@
|
|||
#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json
|
||||
|
||||
packaging_format = 2
|
||||
|
||||
id = "cachet"
|
||||
|
@ -62,7 +64,15 @@ ram.runtime = "50M"
|
|||
main.url = "/"
|
||||
|
||||
[resources.apt]
|
||||
packages = "mariadb-server php7.4-gd php7.4-mbstring php7.4-xml php7.4-mysql php7.4-sqlite3"
|
||||
packages = [
|
||||
"mariadb-server",
|
||||
"php7.4",
|
||||
"php7.4-gd",
|
||||
"php7.4-mbstring",
|
||||
"php7.4-xml",
|
||||
"php7.4-mysql",
|
||||
"php7.4-sqlite3"
|
||||
]
|
||||
|
||||
[resources.database]
|
||||
type = "mysql"
|
||||
|
|
|
@ -67,7 +67,7 @@ exec_artisan "cachet:install"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Finalizing Cachet configuration..."
|
||||
|
||||
password_hash="$(cd $install_dir ; php$YNH_PHP_VERSION artisan tinker -q --no-ansi <<< "echo Hash::make('$password');" |head -n 1)"
|
||||
password_hash="$(cd $install_dir ; php$phpversion artisan tinker -q --no-ansi <<< "echo Hash::make('$password');" |head -n 1)"
|
||||
password_pash="${password_hash::-1}" # Remove last character
|
||||
|
||||
# Populate MySQL database
|
||||
|
|
Loading…
Add table
Reference in a new issue