diff options
author | Alan Lacerda <alacerda@alpinelinux.org> | 2015-07-13 12:42:41 +0000 |
---|---|---|
committer | Alan Lacerda <alacerda@alpinelinux.org> | 2015-07-13 12:42:41 +0000 |
commit | 3abfc979d95d8e98da984a1a349b60619714f6fc (patch) | |
tree | f2d61e2a828548bdf20f080063cd0ebbf33b9e81 | |
parent | 29b5564b718c22e95834600a67fa7b1fc3db6195 (diff) | |
download | setup-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-x | setup-box | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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" |