diff --git a/manifest.toml b/manifest.toml index bed32df..47eb40a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -64,7 +64,16 @@ ram.runtime = "50M" main.url = "/" [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] type = "postgresql" diff --git a/scripts/install b/scripts/install index b8321f4..661c0b5 100644 --- a/scripts/install +++ b/scripts/install @@ -76,6 +76,9 @@ chown $app:$app $install_dir/lufi.conf ynh_script_progression --message="Installing $app..." 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 popd diff --git a/scripts/upgrade b/scripts/upgrade index 356fb96..6501f31 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -82,6 +82,9 @@ chown $app:$app $install_dir/lufi.conf ynh_script_progression --message="Building Lufi..." 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 popd