]> git.nbdom.net Git - nb.git/commitdiff
bin/nb-install
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 6 Feb 2017 16:27:45 +0000 (16:27 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 6 Feb 2017 16:27:45 +0000 (16:27 +0000)
bin/nb-install
www/dbq/docker-compose.yaml

index d63d298c2ba592b3c3a90c8b203c238ef2fa8575..bd8510846c6b8eba955604188fcf41960c25a15c 100755 (executable)
@@ -50,8 +50,12 @@ fdiff() {
 #
 # Cron
 #
-cron_d_install "$NB_ROOT/etc/cron/nb" "nb-update|$NB_ROOT|NB_LOG" && verbose "Cron: $NB_ROOT/etc/cron/nb"
-#cron_d_install "test" "" "nico.*true" && verbose "Cron: nico"
+if [ -e /etc/nb/cron.no ]; then
+  rm -f /etc/cron.d/nb
+else
+  cron_d_install "$NB_ROOT/etc/cron/nb" "nb-update|$NB_ROOT|NB_LOG" && verbose "Cron: $NB_ROOT/etc/cron/nb"
+  #cron_d_install "test" "" "nico.*true" && verbose "Cron: nico"
+fi
 
 #
 # Profile
index cfb4a51a4316e136c7d091d7d8cf28bee9acb2dc..d90cca1e8a28b22f4cc2edc23cf0cd89fe0e6ee1 100644 (file)
@@ -11,8 +11,8 @@ services:
       NB_ROOT: ${NB_ROOT}
     hostname: dbq
     volumes:
-      - /opt:/opt
       - ./../..:$NB_ROOT
+      - /opt:/opt
       - /var/run
       - /etc/profile.d
       - $HOME:/Users/$USER