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:
parent
444c0dd68e
commit
2706331022
3 changed files with 6 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue