1 parent fa2032b commit 924bcbaCopy full SHA for 924bcba
1 file changed
client/run.sh
@@ -80,6 +80,14 @@ fi
80
81
echo "$current_run_number" > "data/run-number"
82
83
+# The client runs when it is installed. The first run after that is triggered by the cron. That might
84
+# happen a few seconds after installation, so skip that first run.
85
+if [[ $current_run_number -eq 1 ]]; then
86
+ log_info "Watchtower was just installed. Skipping first run."
87
+
88
+ exit 0
89
+fi
90
91
log_info "Starting run $current_run_number"
92
93
if [[ ! -d "data/applications" ]]; then
0 commit comments