1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mygpo_ynh.git synced 2024-09-03 19:55:52 +02:00

Use the same dependencies variable

This commit is contained in:
Kayou 2019-03-05 23:11:52 +01:00
parent dcff494c9f
commit e4f08bd4be
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126
4 changed files with 7 additions and 3 deletions

View file

@ -4,6 +4,9 @@
# PERSONAL HELPERS
#=================================================
# dependencies used by the app
pkg_dependencies="deb1 deb2"
#=================================================
# EXPERIMENTAL HELPERS
#=================================================

View file

@ -97,10 +97,11 @@ ynh_print_info "Installing dependencies..."
### Those deb packages will be installed as dependencies of this package.
### If you're not using this helper:
### - Remove the section "REMOVE DEPENDENCIES" in the remove script
### - Remove the variable "pkg_dependencies" in _common.sh
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
ynh_install_app_dependencies deb1 deb2
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# CREATE A MYSQL DATABASE

View file

@ -87,7 +87,7 @@ ynh_restore_file "/etc/php/7.0/fpm/pool.d/$app.conf"
ynh_print_info "Reinstalling dependencies..."
# Define and install dependencies
ynh_install_app_dependencies deb1 deb2
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# RESTORE THE MYSQL DATABASE

View file

@ -94,7 +94,7 @@ ynh_add_nginx_config
#=================================================
ynh_print_info "Upgrading dependencies..."
ynh_install_app_dependencies deb1 deb2
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# CREATE DEDICATED USER