devops: touch first-run marker files every time

Turns out OSX removes untouched files from tmp every once in a
while if they are not touched.
This commit is contained in:
Andrey Lushnikov 2019-12-26 21:20:29 +01:00
parent 2b4039d77c
commit b59049f8e8
3 changed files with 3 additions and 3 deletions

View File

@ -43,10 +43,10 @@ cd "$(dirname "$0")"
IS_FIRST_RUN_FILE="/tmp/pw-buildbot-first-run.txt"; IS_FIRST_RUN_FILE="/tmp/pw-buildbot-first-run.txt";
if ! [[ -f $IS_FIRST_RUN_FILE ]]; then if ! [[ -f $IS_FIRST_RUN_FILE ]]; then
touch "$IS_FIRST_RUN_FILE"
source ./send_telegram_message.sh source ./send_telegram_message.sh
send_telegram_message '**Linux Buildbot Is Active**' send_telegram_message '**Linux Buildbot Is Active**'
fi fi
touch "$IS_FIRST_RUN_FILE"
# Check if git repo is dirty. # Check if git repo is dirty.
if [[ -n $(git status -s) ]]; then if [[ -n $(git status -s) ]]; then

View File

@ -49,10 +49,10 @@ cd "$(dirname "$0")"
IS_FIRST_RUN_FILE="/tmp/pw-buildbot-first-run.txt"; IS_FIRST_RUN_FILE="/tmp/pw-buildbot-first-run.txt";
if ! [[ -f $IS_FIRST_RUN_FILE ]]; then if ! [[ -f $IS_FIRST_RUN_FILE ]]; then
touch "$IS_FIRST_RUN_FILE"
source ./send_telegram_message.sh source ./send_telegram_message.sh
send_telegram_message '**Mac 10.14 Buildbot Is Active**' send_telegram_message '**Mac 10.14 Buildbot Is Active**'
fi fi
touch "$IS_FIRST_RUN_FILE"
# Check if git repo is dirty. # Check if git repo is dirty.
if [[ -n $(git status -s) ]]; then if [[ -n $(git status -s) ]]; then

View File

@ -50,10 +50,10 @@ cd "$(dirname "$0")"
IS_FIRST_RUN_FILE="/tmp/pw-buildbot-first-run.txt"; IS_FIRST_RUN_FILE="/tmp/pw-buildbot-first-run.txt";
if ! [[ -f $IS_FIRST_RUN_FILE ]]; then if ! [[ -f $IS_FIRST_RUN_FILE ]]; then
touch "$IS_FIRST_RUN_FILE"
source ./send_telegram_message.sh source ./send_telegram_message.sh
send_telegram_message '**Mac 10.15 Buildbot Is Active**' send_telegram_message '**Mac 10.15 Buildbot Is Active**'
fi fi
touch "$IS_FIRST_RUN_FILE"
# Check if git repo is dirty. # Check if git repo is dirty.
if [[ -n $(git status -s) ]]; then if [[ -n $(git status -s) ]]; then