1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grav_ynh.git synced 2024-09-03 19:16:01 +02:00

Fix installation (php-zip was missing)

This commit is contained in:
Jean-Baptiste Holcroft 2018-09-03 21:35:41 +02:00
parent 8b79023a4f
commit 7a640eebe4
5 changed files with 28 additions and 3 deletions

View file

@ -6,15 +6,15 @@
"en": "Grav - Grav is a modern open source flat-file CMS",
"fr": "Grav - Grav is a modern open source flat-file CMS"
},
"version": "1.3.1",
"version": "1.3.1~ynh1",
"url": "https://www.getgrav.org/",
"license": "free",
"license": "MIT-0",
"maintainer": {
"name": "cyp, lithrel",
"email": "cyp@rouquin.me, lithrel@randomdomainname.net"
},
"requirements": {
"yunohost": ">> 2.4.0"
"yunohost": ">= 3.1.0"
},
"multi_instance": true,
"services": [

View file

@ -41,6 +41,12 @@ ynh_app_setting_set $app language $language
sudo mkdir "$final_path"
ynh_app_setting_set $app final_path $final_path
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_install_app_dependencies php-zip
# Get source
SETUP_SOURCE

View file

@ -14,6 +14,13 @@ app=$YNH_APP_INSTANCE_NAME
# Retrieve app settings
domain=$(ynh_app_setting_get "$app" domain)
#=================================================
# REMOVE DEPENDENCIES
#=================================================
# Remove metapackage and its dependencies
ynh_remove_app_dependencies
# Delete app directory and configurations
SECURE_REMOVE '/var/www/$app' # Delete directory application
sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf"

View file

@ -42,6 +42,12 @@ if [ -f "${phpfpm_ini}" ]; then
ynh_die "The PHP FPM INI configuration already exists at '${phpfpm_ini}'. You should safely delete it before restoring this app."
fi
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_install_app_dependencies php-zip
# Restore sources & data
sudo cp -a ./sources "${final_path}"

View file

@ -18,6 +18,12 @@ language=$(ynh_app_setting_get "$app" language)
CHECK_PATH # Checks and corrects the syntax of the path.
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_install_app_dependencies php-zip
final_path=/var/www/$app
# Get source