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:
parent
60a742509e
commit
a78b89f604
4 changed files with 14 additions and 3 deletions
|
@ -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] ]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue