1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lufi_ynh.git synced 2024-09-03 19:36:28 +02:00

Merge pull request #86 from YunoHost-Apps/bookworm

Fix bookworm
This commit is contained in:
Salamandar 2023-12-12 12:24:12 +01:00 committed by GitHub
commit f2f71b68d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View file

@ -64,7 +64,16 @@ ram.runtime = "50M"
main.url = "/" main.url = "/"
[resources.apt] [resources.apt]
packages = "build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev postgresql carton" packages = [
"build-essential",
"libssl-dev",
"zlib1g-dev",
"libpq-dev",
"libio-socket-ssl-perl",
"liblwp-protocol-https-perl",
"carton",
"postgresql",
]
[resources.database] [resources.database]
type = "postgresql" type = "postgresql"

View file

@ -76,6 +76,9 @@ chown $app:$app $install_dir/lufi.conf
ynh_script_progression --message="Installing $app..." ynh_script_progression --message="Installing $app..."
pushd $install_dir pushd $install_dir
# Patch cpanfile.snapshot to bump dependency
sed -i 's|Cpanel-JSON-XS-4.19|Cpanel-JSON-XS-4.37|' cpanfile.snapshot
sed -i 's|Cpanel::JSON::XS 4.19|Cpanel::JSON::XS 4.37|' cpanfile.snapshot
carton install --deployment --without=sqlite --without=mysql --without=htpasswd --without=test carton install --deployment --without=sqlite --without=mysql --without=htpasswd --without=test
popd popd

View file

@ -82,6 +82,9 @@ chown $app:$app $install_dir/lufi.conf
ynh_script_progression --message="Building Lufi..." ynh_script_progression --message="Building Lufi..."
pushd $install_dir pushd $install_dir
# Patch cpanfile.snapshot to bump dependency
sed -i 's|Cpanel-JSON-XS-4.19|Cpanel-JSON-XS-4.37|' cpanfile.snapshot
sed -i 's|Cpanel::JSON::XS 4.19|Cpanel::JSON::XS 4.37|' cpanfile.snapshot
carton install --deployment --without=sqlite --without=mysql --without=htpasswd --without=test carton install --deployment --without=sqlite --without=mysql --without=htpasswd --without=test
popd popd