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

Create pkg_dependencies variable

This commit is contained in:
Kayou 2019-03-27 01:11:01 +01:00
parent 60a742509e
commit a78b89f604
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126
4 changed files with 14 additions and 3 deletions

View file

@ -1,5 +1,16 @@
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
# dependencies used by the app
pkg_dependencies="build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev postgresql cpanminus"
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================
# Start (or other actions) a service, print a log in case of failure and optionnaly wait until the service is completely started
#
# usage: ynh_systemd_action [-n service_name] [-a action] [ [-l "line to match"] [-p log_path] [-t timeout] [-e length] ]

View file

@ -81,7 +81,7 @@ ynh_app_setting_set $app max_file_size $max_file_size
#=================================================
ynh_print_info "Installing dependencies..."
ynh_install_app_dependencies build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev postgresql cpanminus
ynh_install_app_dependencies $pkg_dependencies
# Install Carton
echo yes | cpanm Carton

View file

@ -51,7 +51,7 @@ test ! -d $final_path \
ynh_print_info "Reinstalling dependencies..."
# Define and install dependencies
ynh_install_app_dependencies build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev postgresql cpanminus
ynh_install_app_dependencies $pkg_dependencies
# Install Carton
echo yes | cpanm Carton

View file

@ -85,7 +85,7 @@ ynh_abort_if_errors
#=================================================
ynh_print_info "Upgrading source files..."
ynh_install_app_dependencies build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev postgresql cpanminus
ynh_install_app_dependencies $pkg_dependencies
ynh_setup_source "$final_path"