Skip to content

Commit

Permalink
Changed my mind
Browse files Browse the repository at this point in the history
  • Loading branch information
pintoflager committed Feb 27, 2023
1 parent 60797da commit 154cb19
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dependency.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

[dependency.sh]
optional = false
on_level = "Node" # Node | Group | Project | Commander / Client
on_level = "Node" # Node | Group | Project | Client
collection = "Executor"
23 changes: 10 additions & 13 deletions executor/sh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,24 @@

role="$1"

# App installation tasks on a local client node. Runs first
# App installation tasks on a client node. Runs first
if [ "$role" = 'client' ]; then
# TODO: get rid of these notifications. Left for debugging only.
carburator print terminal info "Executing install script on $role"
fi

# App installation tasks on remote worker node.
if [ "$role" = 'worker' ]; then
carburator print terminal info "Executing install script on $role"
fi

# App installation tasks on remote commander node.
if [ "$role" = 'commander' ]; then
# App installation tasks on remote server node.
if [ "$role" = 'server' ]; then
# TODO: get rid of these notifications. Left for debugging only.
carburator print terminal info "Executing install script on $role"
fi

# Bash needs bash
if ! carburator has program bash; then
carburator print terminal error \
"Missing required program bash. Please install it before proceeding."
exit 120
carburator print terminal error \
"Missing required program bash. Please install it before proceeding."
exit 120
fi

# Just a reminder, to figure out where (any) script runs:
# if [[ $(carburator node role) == 'commander' ]]; then ...... ; fi
# TODO: Just a reminder, to figure out where (any) script runs:
# if [[ $(carburator node role) == 'client' ]]; then ...... ; fi
2 changes: 1 addition & 1 deletion package.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "bash"
version = "0.1.0"
collection = "Executor"
platforms = ["Client", "Commander", "Worker"]
platforms = ["Client", "Server"]

retry_times = 3
retry_interval = 10

0 comments on commit 154cb19

Please sign in to comment.