diff --git a/scripts/install b/scripts/install index 7e87e81..7b17293 100755 --- a/scripts/install +++ b/scripts/install @@ -10,7 +10,7 @@ source /usr/share/yunohost/helpers # had been installed by flohmarkt and we thus can savely do whatever we want to it # with the resulting damage hopefully only influencing flohmarkt instances if [[ -e /opt/couchdb ]] || pgrep epmd > /dev/null || pgrep beam.smp || dpkg-query -W couchdb > /dev/null 2>&1 \ - && ![[ -e /opt/couchdb/etc/local.d/05-flohmarkt.ini ]]; + && ! [[ -e /opt/couchdb/etc/local.d/05-flohmarkt.ini ]]; then ynh_die --message="CouchDB already installed on this host - will not proceed." exit 1 diff --git a/scripts/restore b/scripts/restore index 32ef1b4..9c15abd 100755 --- a/scripts/restore +++ b/scripts/restore @@ -8,7 +8,7 @@ ynh_script_progression --message="Reinstalling couchdb..." --weight=40 flohmarkt_ynh_up_inst_couchdb # add couchdb configuration -if ![[ -e /opt/couchdb/etc/local.d/05-flohmarkt.ini ]]; then +if ! [[ -e /opt/couchdb/etc/local.d/05-flohmarkt.ini ]]; then ynh_script_progression --message="Adding a configuration file..." --weight=2 flohmarkt_ynh_stop_couchdb