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:
parent
8b79023a4f
commit
7a640eebe4
5 changed files with 28 additions and 3 deletions
|
@ -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": [
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue