From 8bf2ba8835b7e4f04979d8ead1d5057fea1469fb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 13 Nov 2021 17:17:05 +0100 Subject: [PATCH] Remove redis-server Redis is already installed in YunoHost --- scripts/_common.sh | 1 - scripts/install | 2 -- scripts/remove | 8 -------- scripts/restore | 3 --- scripts/upgrade | 3 --- 5 files changed, 17 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 840a8ba..959bdbc 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,6 @@ #================================================= # dependencies used by the app -pkg_dependencies="redis-server" YNH_COMPOSER_VERSION="2.0.11" YNH_PHP_VERSION="7.4" NODEJS_VERSION=14 diff --git a/scripts/install b/scripts/install index e750c35..33e6ee3 100644 --- a/scripts/install +++ b/scripts/install @@ -69,8 +69,6 @@ ynh_app_setting_set --app=$app --key=version --value=$version #================================================= ynh_script_progression --message="Installing dependencies..." -ynh_install_app_dependencies $pkg_dependencies - ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" diff --git a/scripts/remove b/scripts/remove index 5fba8f1..109f130 100755 --- a/scripts/remove +++ b/scripts/remove @@ -31,14 +31,6 @@ ynh_script_progression --message="Removing the MySQL database..." # Remove a database if it exists, along with the associated user ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name -#================================================= -# REMOVE DEPENDENCIES -#================================================= -ynh_script_progression --message="Removing dependencies..." - -# Remove metapackage and its dependencies -ynh_remove_app_dependencies - #================================================= # REMOVE APP MAIN DIR #================================================= diff --git a/scripts/restore b/scripts/restore index fb974b6..225d474 100644 --- a/scripts/restore +++ b/scripts/restore @@ -87,9 +87,6 @@ ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencie #================================================= ynh_script_progression --message="Reinstalling dependencies..." -# Define and install dependencies -ynh_install_app_dependencies $pkg_dependencies - ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" diff --git a/scripts/upgrade b/scripts/upgrade index e31a779..b8dda2c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -34,7 +34,6 @@ version=$(curl -s https://api.github.com/repos/monicahq/monica/releases/latest | #================================================= # CHECK VERSION #================================================= -ynh_script_progression --message="Checking version..." upgrade_type=$(ynh_check_app_version_changed) @@ -131,8 +130,6 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Upgrading dependencies..." -ynh_install_app_dependencies $pkg_dependencies - ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"