1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00

no install when couchdb found

This commit is contained in:
Chris Vogel 2024-04-17 15:06:48 +02:00
parent 8ce6d4a4df
commit 0745dedaf1

View file

@ -8,10 +8,14 @@ source /usr/share/yunohost/helpers
# @@ todo do we need to store the password un-encrypted somewhere on the system? # @@ 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" 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 # https://codeberg.org/ChriChri/flohmarkt_ynh/issues/9
# check if couchdb is already installed # 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 # get port, admin_pw for already installed couchdb
# skip the installation steps below # skip the installation steps below
ynh_script_progression --message="Installing CouchDB..." --weight=60 ynh_script_progression --message="Installing CouchDB..." --weight=60