1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

move php install commands

This commit is contained in:
Sebastian Gumprich 2017-07-02 21:11:42 +02:00
parent 7c3bb76eab
commit 5e01ed27ce
3 changed files with 3 additions and 3 deletions

View file

@ -219,7 +219,7 @@ ynh_install_php7 () {
fi
ynh_package_update
ynh_package_install php7.0 php7.0-zip php7.0-fpm php7.0-mysql php7.0-xml php7.0-intl php7.0-mbstring --no-install-recommends
ynh_package_install php7.0 --no-install-recommends
sudo update-alternatives --install /usr/bin/php php /usr/bin/php5 70
}

View file

@ -41,6 +41,7 @@ sudo mkdir -p $final_path
sudo chmod 775 $final_path
ynh_install_php7
ynh_package_install php7.0 php7.0-zip php7.0-fpm php7.0-mysql php7.0-xml php7.0-intl php7.0-mbstring --no-install-recommends
### MySQL (can be removed if not used) ###
# If your app use a MySQL database you can use these lines to bootstrap
@ -56,7 +57,6 @@ ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass"
# install nodejs
ynh_install_nodejs 6.10.3
ynh_package_install g++ php7.0-curl php7.0-gd
# extract monica into $final_path
extract_monica $final_path

View file

@ -32,7 +32,7 @@ extract_monica $final_path
#ynh_setup_source $final_path
# install new dependencies
ynh_package_install g++ php7.0-curl
ynh_package_install php7.0 php7.0-zip php7.0-fpm php7.0-mysql php7.0-xml php7.0-intl php7.0-mbstring --no-install-recommends
# create a user
first_name=$(ynh_user_get_info $admin 'firstname')