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

Dependecy fix for stretch

This commit is contained in:
anmol26s 2018-05-25 22:19:15 +05:30
parent b4b83eca41
commit f8737de518
3 changed files with 16 additions and 4 deletions

View file

@ -66,8 +66,11 @@ ynh_app_setting_set $app database $database
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_install_app_dependencies php5-cli php5-imagick php5-gd php5-mcrypt php-xml
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
#=================================================
# CREATE A MYSQL DATABASE

View file

@ -84,8 +84,11 @@ ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini"
# REINSTALL DEPENDENCIES
#=================================================
# Define and install dependencies
ynh_install_app_dependencies php5-cli php5-imagick php5-gd php5-mcrypt php-xml
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

View file

@ -125,6 +125,12 @@ ynh_use_logrotate "$final_path/php.log" --non-append
sed -i "s@YNH_WWW_PATH@$final_path@g" ../conf/poller-cron
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
pkg_dependencies="$pkg_dependencies php-xml"
fi
ynh_install_app_dependencies $pkg_dependencies
# Make app public
ynh_app_setting_set $app skipped_uris "/"