1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hubzilla_ynh.git synced 2024-09-03 19:26:21 +02:00

Added solution for dependencies @Josue-T

This commit is contained in:
anmol26s 2018-06-12 21:23:48 +05:30
parent 52c6e6e2d6
commit 61cd1bd103
3 changed files with 7 additions and 16 deletions

View file

@ -66,11 +66,7 @@ ynh_app_setting_set $app database $database
#================================================= #=================================================
# INSTALL DEPENDENCIES # INSTALL DEPENDENCIES
#================================================= #=================================================
pkg_dependencies="php5-cli php5-imagick php5-gd php5-mcrypt" ynh_install_app_dependencies php5-cli 'php5-imagick|php-imagick' php5-gd php5-mcrypt 'php-xml|base-files(<<9.0)'
if [ "$(lsb_release --codename --short)" != "jessie" ]; then
pkg_dependencies="$pkg_dependencies php-xml"
fi
ynh_install_app_dependencies $pkg_dependencies
#================================================= #=================================================
# CREATE A MYSQL DATABASE # CREATE A MYSQL DATABASE

View file

@ -83,12 +83,7 @@ ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini"
#================================================= #=================================================
# REINSTALL DEPENDENCIES # REINSTALL DEPENDENCIES
#================================================= #=================================================
ynh_install_app_dependencies php5-cli 'php5-imagick|php-imagick' php5-gd php5-mcrypt 'php-xml|base-files(<<9.0)'
pkg_dependencies="php5-cli php5-imagick php5-gd php5-mcrypt"
if [ "$(lsb_release --codename --short)" != "jessie" ]; then
pkg_dependencies="$pkg_dependencies php-xml"
fi
ynh_install_app_dependencies $pkg_dependencies
#================================================= #=================================================
# RESTORE THE CRON FILE # RESTORE THE CRON FILE

View file

@ -125,11 +125,11 @@ ynh_use_logrotate "$final_path/php.log" --non-append
sed -i "s@YNH_WWW_PATH@$final_path@g" ../conf/poller-cron sed -i "s@YNH_WWW_PATH@$final_path@g" ../conf/poller-cron
sudo cp ../conf/poller-cron /etc/cron.d/$app sudo cp ../conf/poller-cron /etc/cron.d/$app
pkg_dependencies="php5-cli php5-imagick php5-gd php5-mcrypt" #=================================================
if [ "$(lsb_release --codename --short)" != "jessie" ]; then # INSTALL DEPENDENCIES
pkg_dependencies="$pkg_dependencies php-xml" #=================================================
fi ynh_install_app_dependencies php5-cli 'php5-imagick|php-imagick' php5-gd php5-mcrypt 'php-xml|base-files(<<9.0)'
ynh_install_app_dependencies $pkg_dependencies
# Make app public # Make app public
ynh_app_setting_set $app skipped_uris "/" ynh_app_setting_set $app skipped_uris "/"