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
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
pkg_dependencies="php5-cli php-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
|
||||||
|
|
|
@ -80,11 +80,8 @@ ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini"
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
pkg_dependencies="php5-cli php-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
|
|
||||||
|
|
||||||
# set permission
|
# set permission
|
||||||
sudo chmod -R 777 $final_path/view/smarty3
|
sudo chmod -R 777 $final_path/view/smarty3
|
||||||
|
|
|
@ -33,11 +33,8 @@ ynh_clean_setup () {
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
# Add Dependencies
|
# Add Dependencies
|
||||||
pkg_dependencies="php5-cli php-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 temporary directory
|
# Create a temporary directory
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue