Skip to content

Commit 924bcba

Browse files
committed
Update run.sh
1 parent fa2032b commit 924bcba

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

client/run.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ fi
8080

8181
echo "$current_run_number" > "data/run-number"
8282

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+
8391
log_info "Starting run $current_run_number"
8492

8593
if [[ ! -d "data/applications" ]]; then

0 commit comments

Comments
 (0)