Chris Vogel пре 1 година
родитељ
комит
664e7475f1
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      scripts/install
  2. 1 1
      scripts/restore

+ 1 - 1
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
 # 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
 # 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 \
 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
 then
   ynh_die --message="CouchDB already installed on this host - will not proceed."
   ynh_die --message="CouchDB already installed on this host - will not proceed."
   exit 1
   exit 1

+ 1 - 1
scripts/restore

@@ -8,7 +8,7 @@ ynh_script_progression --message="Reinstalling couchdb..." --weight=40
 flohmarkt_ynh_up_inst_couchdb
 flohmarkt_ynh_up_inst_couchdb
 
 
 # add couchdb configuration
 # 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
   ynh_script_progression --message="Adding a configuration file..." --weight=2
 
 
   flohmarkt_ynh_stop_couchdb
   flohmarkt_ynh_stop_couchdb