summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Lacerda <alacerda@alpinelinux.org>2015-04-30 19:34:28 +0000
committerAlan Lacerda <alacerda@alpinelinux.org>2015-04-30 19:34:28 +0000
commit06540c15bc2e4fd9b6caa82cfa237d1e0f28e0da (patch)
tree5ab047bd6ecb47bd89dd42b6c7b0f151fefbc2d1
parent81528bb8c3a80405788824700f84398b56a87a60 (diff)
downloadsetup-box-06540c15bc2e4fd9b6caa82cfa237d1e0f28e0da.tar.bz2
setup-box-06540c15bc2e4fd9b6caa82cfa237d1e0f28e0da.tar.xz
setup-box: enabling apk addv0.1.0-RC1
-rwxr-xr-xsetup-box11
1 files changed, 5 insertions, 6 deletions
diff --git a/setup-box b/setup-box
index 8be2d88..222e454 100755
--- a/setup-box
+++ b/setup-box
@@ -229,12 +229,12 @@ add_services() {
##
# Main function starts here
main () {
- # first of all lets redirect any error to the limbo
+ # If -v was not given, lets redirect any error to the limbo
if [ "$show_error" == "0" ]; then
exec 2&> /dev/null
fi
- # installing dependencies
+ # Checking some premisses and installing dependencies
check_deps
# Harvesting for all valid JSON files
@@ -264,13 +264,12 @@ main () {
# Packages to be installed (including services)
optimize_pack "$final_pack"
- echo $final_pack
+ apk add $final_pack
# Services to be added to startup (just services)
optimize_serv "$final_serv"
- #add_services $final_serv
- echo Servicos: $final_serv
-
+ add_services $final_serv
+
# Removing dependencies
del_deps
}