فهرست منبع

fixed 2 syntax errors

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
 # 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

+ 1 - 1
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