1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

Added @Josue-T solution for dependencies

This commit is contained in:
anmol26s 2018-06-10 19:47:36 +05:30
parent 444c0dd68e
commit 2706331022
3 changed files with 6 additions and 15 deletions

View file

@ -70,11 +70,8 @@ ynh_app_setting_set $app database $database
#=================================================
# INSTALL DEPENDENCIES
#=================================================
pkg_dependencies="php5-cli php-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
ynh_install_app_dependencies php5-cli 'php5-imagick|php-imagick' php5-gd php5-mcrypt 'php-xml|base-files(<<9.0)'
#=================================================
# CREATE A MYSQL DATABASE

View file

@ -80,11 +80,8 @@ ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini"
# REINSTALL DEPENDENCIES
#=================================================
pkg_dependencies="php5-cli php-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
ynh_install_app_dependencies php5-cli 'php5-imagick|php-imagick' php5-gd php5-mcrypt 'php-xml|base-files(<<9.0)'
# set permission
sudo chmod -R 777 $final_path/view/smarty3

View file

@ -33,11 +33,8 @@ ynh_clean_setup () {
ynh_abort_if_errors
# Add Dependencies
pkg_dependencies="php5-cli php-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
ynh_install_app_dependencies php5-cli 'php5-imagick|php-imagick' php5-gd php5-mcrypt 'php-xml|base-files(<<9.0)'
# Create a temporary directory
tmpdir="$(mktemp -d)"