From c50274de6ad8437effb5e0b59f99711e371e52ad Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 11 Sep 2021 10:29:27 +0200 Subject: [PATCH] remove redis install -> already part of YunoHost --- scripts/_common.sh | 2 -- scripts/install | 7 ------- scripts/remove | 8 -------- scripts/restore | 9 --------- scripts/upgrade | 7 ------- 5 files changed, 33 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index ed4ae6b..60ae74d 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -8,8 +8,6 @@ YNH_PHP_VERSION="8.0" extra_php_dependencies="php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-mysqlnd" -pkg_dependencies="redis-server redis-tools" - #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index c240925..ac247e1 100755 --- a/scripts/install +++ b/scripts/install @@ -57,13 +57,6 @@ ynh_script_progression --message="Configuring system user..." --weight=1 # Create a system user ynh_system_user_create --username=$app --home_dir=$final_path -#================================================= -# INSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Installing dependencies..." --weight=1 - -ynh_install_app_dependencies $pkg_dependencies - #================================================= # CREATE A MYSQL DATABASE #================================================= diff --git a/scripts/remove b/scripts/remove index 8b467da..7b22d1d 100755 --- a/scripts/remove +++ b/scripts/remove @@ -37,14 +37,6 @@ ynh_script_progression --message="Removing the Redis database..." --weight=1 ynh_redis_remove_db "$redis_db" -#================================================= -# REMOVE DEPENDENCIES -#================================================= -ynh_script_progression --message="Removing dependencies..." --weight=1 - -# Remove metapackage and its dependencies -ynh_remove_app_dependencies - #================================================= # REMOVE APP MAIN DIR #================================================= diff --git a/scripts/restore b/scripts/restore index ba01d32..52378f1 100755 --- a/scripts/restore +++ b/scripts/restore @@ -75,18 +75,9 @@ chown -R $app:www-data "$final_path" #ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" - # Create a dedicated PHP-FPM config ynh_add_fpm_config --package="$extra_php_dependencies" -#================================================= -# REINSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Reinstalling dependencies..." --weight=1 - -# Define and install dependencies -ynh_install_app_dependencies $pkg_dependencies - #================================================= # RESTORE THE MYSQL DATABASE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index a54125c..c9350fb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -102,13 +102,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# UPGRADE DEPENDENCIES -#================================================= -ynh_script_progression --message="Upgrading dependencies..." --weight=1 - -ynh_install_app_dependencies $pkg_dependencies - #================================================= # PHP-FPM CONFIGURATION #=================================================