Completes bootstrap.v2 setup
This commit is contained in:
parent
2bbccb4595
commit
b8192c832e
24 changed files with 86 additions and 143 deletions
|
|
@ -7,11 +7,9 @@ SCRIPTPATH="$(
|
|||
pwd -P
|
||||
)"
|
||||
APPLICATIONS_PATH="$SCRIPTPATH/applications"
|
||||
ACTIONS_PATH="$SCRIPTPATH/actions"
|
||||
|
||||
#$SCRIPTPATH/functions/set_class.sh
|
||||
$SCRIPTPATH/functions/set_class.sh
|
||||
source $SCRIPTPATH/functions/pkg.sh
|
||||
source $SCRIPTPATH/functions/filerunner.sh
|
||||
|
||||
if [[ ! -d "$APPLICATIONS_PATH" ]]; then
|
||||
echo "Error: applications directory '$APPLICATIONS_PATH' not found" >&2
|
||||
|
|
@ -30,7 +28,7 @@ actions=()
|
|||
addApplications ()
|
||||
{
|
||||
for application in "$@"; do
|
||||
echo "adding application: $application"
|
||||
# echo "adding application: $application"
|
||||
|
||||
applications+=("$application")
|
||||
done
|
||||
|
|
@ -39,7 +37,7 @@ addApplications ()
|
|||
addActions()
|
||||
{
|
||||
for action in "$@"; do
|
||||
echo "adding action: $action"
|
||||
# echo "adding action: $action"
|
||||
|
||||
actions+=("$action")
|
||||
done
|
||||
|
|
@ -55,4 +53,8 @@ echo -n "# Installing/Updating applications (${#applications[@]})"
|
|||
installPackages ${applications[*]}
|
||||
|
||||
echo "# Executing actions... (${#actions[@]})"
|
||||
|
||||
for action in "${actions[@]}";
|
||||
do
|
||||
echo "==> Now executing: ${action}"
|
||||
$action
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue