1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00

Installation of dependencies : php5-gd php5-sqlite php5-json php5-intl

This commit is contained in:
polytan02 2016-12-22 00:47:34 +00:00
parent 499a1777c4
commit f6bbc63117
3 changed files with 8 additions and 0 deletions

View file

@ -42,6 +42,8 @@ ynh_app_setting_set "$app" finalnginxconf "$finalnginxconf"
finalphpconf="/etc/php5/fpm/pool.d/${app}.conf"
ynh_app_setting_set "$app" finalphpconf "$finalphpconf"
# We install dependencies
sudo apt-get install --quiet php5-gd php5-sqlite php5-json php5-intl
# Creation of folder
#sudo rm -rf $final_path

View file

@ -26,6 +26,9 @@ runninguser=$(ynh_app_setting_get $app runninguser)
#sudo yunohost app checkurl "${domain}${path}" -a "$app" \
# || ynh_die "Path not available: ${domain}${path}"
# We install dependencies
sudo apt-get install --quiet php5-gd php5-sqlite php5-json php5-intl
# Restore sources & data
sudo mkdir -p $final_path
sudo cp -a ./sources/* $final_path/

View file

@ -24,6 +24,9 @@ finalnginxconf=$(ynh_app_setting_get $app finalnginxconf)
finalphpconf=$(ynh_app_setting_get $app finalphpconf)
runninguser=$(ynh_app_setting_get $app runninguser)
# We install dependencies
sudo apt-get install --quiet php5-gd php5-sqlite php5-json php5-intl
# Modify Nginx configuration file and copy it to Nginx conf directory
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf