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:
parent
499a1777c4
commit
f6bbc63117
3 changed files with 8 additions and 0 deletions
|
@ -42,6 +42,8 @@ ynh_app_setting_set "$app" finalnginxconf "$finalnginxconf"
|
||||||
finalphpconf="/etc/php5/fpm/pool.d/${app}.conf"
|
finalphpconf="/etc/php5/fpm/pool.d/${app}.conf"
|
||||||
ynh_app_setting_set "$app" finalphpconf "$finalphpconf"
|
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
|
# Creation of folder
|
||||||
#sudo rm -rf $final_path
|
#sudo rm -rf $final_path
|
||||||
|
|
|
@ -26,6 +26,9 @@ runninguser=$(ynh_app_setting_get $app runninguser)
|
||||||
#sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
#sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
||||||
# || ynh_die "Path not available: ${domain}${path}"
|
# || 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
|
# Restore sources & data
|
||||||
sudo mkdir -p $final_path
|
sudo mkdir -p $final_path
|
||||||
sudo cp -a ./sources/* $final_path/
|
sudo cp -a ./sources/* $final_path/
|
||||||
|
|
|
@ -24,6 +24,9 @@ finalnginxconf=$(ynh_app_setting_get $app finalnginxconf)
|
||||||
finalphpconf=$(ynh_app_setting_get $app finalphpconf)
|
finalphpconf=$(ynh_app_setting_get $app finalphpconf)
|
||||||
runninguser=$(ynh_app_setting_get $app runninguser)
|
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
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||||
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf
|
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf
|
||||||
|
|
Loading…
Reference in a new issue