mirror of
https://github.com/YunoHost-Apps/monica_ynh.git
synced 2024-09-03 19:46:23 +02:00
use package helpers
This commit is contained in:
parent
7265a3a35b
commit
bd34b89c21
4 changed files with 4 additions and 7 deletions
|
@ -264,7 +264,7 @@ ynh_install_php7 () {
|
|||
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list
|
||||
|
||||
ynh_package_update
|
||||
ynh_package_install php7.1 --no-install-recommends
|
||||
ynh_install_app_dependencies php7.1 php7.1-zip php7.1-fpm php7.1-mysql php7.1-xml php7.1-intl php7.1-mbstring php7.1-gd php7.1-curl
|
||||
sudo update-alternatives --install /usr/bin/php php /usr/bin/php5 70
|
||||
}
|
||||
|
||||
|
@ -272,6 +272,6 @@ ynh_remove_php7 () {
|
|||
sudo rm -f /etc/apt/sources.list.d/php7.list
|
||||
sudo apt-key del 4096R/89DF5277
|
||||
sudo apt-key del 2048R/11A06851
|
||||
ynh_package_remove php7.1 php7.1-fpm php7.1-mysql php7.1-xml php7.1-intl php7.1-mbstring
|
||||
ynh_remove_app_dependencies php7.1 php7.1-zip php7.1-fpm php7.1-mysql php7.1-xml php7.1-intl php7.1-mbstring php7.1-gd php7.1-curl
|
||||
}
|
||||
|
||||
|
|
|
@ -70,7 +70,6 @@ ynh_app_setting_set $app language $language
|
|||
#=================================================
|
||||
|
||||
ynh_install_php7
|
||||
ynh_package_install php7.1 php7.1-zip php7.1-fpm php7.1-mysql php7.1-xml php7.1-intl php7.1-mbstring php7.1-gd php7.1-curl
|
||||
ynh_install_nodejs 6.10.3
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -76,8 +76,7 @@ ynh_system_user_create $app
|
|||
# REINSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
|
||||
ynh_install_php7
|
||||
ynh_package_install php7.1 php7.1-zip php7.1-fpm php7.1-mysql php7.1-xml php7.1-intl php7.1-mbstring php7.1-gd php7.1-curl
|
||||
ynh_install_app_dependencies php7.1 php7.1-zip php7.1-fpm php7.1-mysql php7.1-xml php7.1-intl php7.1-mbstring php7.1-gd php7.1-curl
|
||||
|
||||
ynh_install_nodejs 6.10.3
|
||||
|
||||
|
|
|
@ -87,8 +87,7 @@ ynh_system_user_create $app
|
|||
#=================================================
|
||||
|
||||
# install new dependencies
|
||||
ynh_install_php7
|
||||
ynh_package_install php7.1 php7.1-zip php7.1-fpm php7.1-mysql php7.1-xml php7.1-intl php7.1-mbstring --no-install-recommends
|
||||
ynh_install_app_dependencies php7.1 php7.1-zip php7.1-fpm php7.1-mysql php7.1-xml php7.1-intl php7.1-mbstring php7.1-gd php7.1-curl
|
||||
|
||||
# create a user
|
||||
first_name=$(ynh_user_get_info $admin 'firstname')
|
||||
|
|
Loading…
Add table
Reference in a new issue