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:
parent
8ce6d4a4df
commit
0745dedaf1
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue