Skip to content

Commit

Permalink
ci: pass launch-all args to auto-update, to use it on auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Dec 26, 2023
1 parent 934c849 commit 1a77bbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/scripts/auto-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ HASH_FILE="$RUSTY_HOME_DIR/current.sha256"
show_usage () {
echo "Parameters:"
echo "-b: build binary (instead of downloading the latest release)"
echo "-l: always launch (even if already up-to-date; useful on reboot)"
}

while getopts "blh" opt; do
Expand Down
3 changes: 2 additions & 1 deletion server/scripts/launch-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ printf "${SECTION}* Launching Grafana stack...$RESET\n\n"

printf "\n${SECTION}* Updating and launching server...$RESET\n\n"

cp server/scripts/auto-update.sh /tmp/rusty-auto-update.sh && bash /tmp/rusty-auto-update.sh -l
# Forwards all arguments passed (for args build and launch always)
cp server/scripts/auto-update.sh /tmp/rusty-auto-update.sh && bash /tmp/rusty-auto-update.sh "$@"

# Update and launch non-adhoc plugins

Expand Down

0 comments on commit 1a77bbe

Please sign in to comment.