From 0745dedaf15d18e57a5071ee18b8991df8eb1de1 Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Wed, 17 Apr 2024 15:06:48 +0200 Subject: [PATCH] no install when couchdb found --- scripts/install | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 07de56d..2a220d3 100755 --- a/scripts/install +++ b/scripts/install @@ -8,10 +8,14 @@ source /usr/share/yunohost/helpers # @@ todo do we need to store the password un-encrypted somewhere on the system? ynh_app_setting_set --app=$app --key=password_couchdb_admin --value="$password_couchdb_admin" -# INSTALL COUCHDB -# @@ todo # https://codeberg.org/ChriChri/flohmarkt_ynh/issues/9 # check if couchdb is already installed +if [[ -e /opt/couchdb ]] || pgrep epmd > /dev/null || pgrep beam.smp || dpkg-query -W couchdb > /dev/null 2>&1; +then + ynh_print_err --message="CouchDB already installed on this host - will not proceed." + exit 1 +fi + # get port, admin_pw for already installed couchdb # skip the installation steps below ynh_script_progression --message="Installing CouchDB..." --weight=60