Skip to content

Commit

Permalink
Fix to handle non-default TZ #28
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed May 28, 2022
1 parent da6fa88 commit 05c42b5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,25 @@ else
exit
fi

# Remember Timezome and Reset to Default
echo "Resetting Timezone to Default..."
DEFAULT="America/Los_Angeles"
TZ=`cat tz`
if [ -z "${TZ}" ]; then
TZ="America/Los_Angeles"
fi
./tz.sh "${DEFAULT}"

# Pull from Github
echo ""
echo "Pull influxdb.sql, dashboard.json, telegraf.conf, and other changes..."
git pull

# Set Timezone
echo ""
echo "Setting Timezone back to ${TZ}..."
./tz.sh "${TZ}"

# Update Influxdb
echo ""
echo "Add downsample continuous queries to InfluxDB..."
Expand Down

0 comments on commit 05c42b5

Please sign in to comment.