summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Lacerda <alacerda@alpinelinux.org>2015-07-13 12:42:41 +0000
committerAlan Lacerda <alacerda@alpinelinux.org>2015-07-13 12:42:41 +0000
commit3abfc979d95d8e98da984a1a349b60619714f6fc (patch)
treef2d61e2a828548bdf20f080063cd0ebbf33b9e81
parent29b5564b718c22e95834600a67fa7b1fc3db6195 (diff)
downloadsetup-box-3abfc979d95d8e98da984a1a349b60619714f6fc.tar.bz2
setup-box-3abfc979d95d8e98da984a1a349b60619714f6fc.tar.xz
setup-box: we do not use virtual package anymore and ask if the user agrees to add the selected packages
-rwxr-xr-xsetup-box11
1 files changed, 10 insertions, 1 deletions
diff --git a/setup-box b/setup-box
index 57490a5..f01b7bc 100755
--- a/setup-box
+++ b/setup-box
@@ -338,7 +338,16 @@ main () {
# Packages to be installed (including services)
optimize_pack "$final_pack"
- apk add --virtual .setup-box $final_pack
+ echo "We are about to install the following packages:"
+ echo $final_pack | tr '\ ' '\n'
+ echo -n "Do you agree?[Y/n]: "
+ read answer
+ if [ "$answer" == "" ]; then answer="Y"; fi
+ if [ $answer == "Y" ] || [ $answer == "y" ]; then
+ apk add $final_pack
+ else
+ exit 0
+ fi
# Services to be added to startup (just services)
optimize_serv "$final_serv"