Skip to content

Commit 053fe8e

Browse files
dieselburnerlimdingwen
authored andcommitted
Change 'once' default value to false
1 parent b61c326 commit 053fe8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ RUN \
3838
curl -SLf https://github.com/docker/compose/releases/download/v${COMPOSE_VERSION}/docker-compose-linux-${DOWNLOAD_ARCH} -o /usr/local/lib/docker/cli-plugins/docker-compose && \
3939
chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
4040
COPY --from=builder /go/src/app/main /usr/local/bin/docker-compose-watcher
41-
CMD ["docker-compose-watcher", "-once=0", "-printSettings"]
41+
CMD ["docker-compose-watcher", "-printSettings"]

src/settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func ReadSettings() {
3333
s.boolFlagEnv(&s.Dry, "dry", "DRY", false, "dry run: check and pull, but don't restart")
3434
s.boolFlagEnv(&s.Help, "help", "HELP", false, "print usage instructions")
3535
s.int64FlagEnv(&s.Interval, "interval", "INTERVAL", 60, "interval in minutes between runs")
36-
s.boolFlagEnv(&s.Once, "once", "ONCE", true, "run once and exit, do not run in background")
36+
s.boolFlagEnv(&s.Once, "once", "ONCE", false, "run once and exit, do not run in background")
3737
s.boolFlagEnv(&s.PrintSettings, "printSettings", "PRINT_SETTINGS", false, "print used settings")
3838
s.stringFlagEnv(&s.UpdateLog, "updateLog", "UPDATE_LOG", "", "update log file")
3939
//s.boolFlagEnv(&s.CompleteStop, "completeStop", "COMPLETE_STOP", false, "Restart all services in docker-compose.yml (even unmanaged) after a new image is pulled")

0 commit comments

Comments
 (0)