summaryrefslogtreecommitdiffstats
path: root/libexec/container/update
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-04 03:25:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-04 03:25:35 +0000
commitf2829f027e8db510bd79697e0d208e127ee33805 (patch)
tree714d6d50f7e722ef5b82cde46b5b3cc62b15a7db /libexec/container/update
parentAdding upstream version 20210727. (diff)
downloadopen-infrastructure-compute-tools-f2829f027e8db510bd79697e0d208e127ee33805.tar.xz
open-infrastructure-compute-tools-f2829f027e8db510bd79697e0d208e127ee33805.zip
Adding upstream version 20210804.upstream/20210804
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libexec/container/update')
-rwxr-xr-xlibexec/container/update7
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/container/update b/libexec/container/update
index bb175d1..4c23423 100755
--- a/libexec/container/update
+++ b/libexec/container/update
@@ -29,7 +29,7 @@ HOOKS="/etc/${SOFTWARE}/hooks"
Parameters ()
{
GETOPT_LONGOPTIONS="name:,full-upgrade,autoremove,purge,yes,"
- GETOPT_OPTIONS="n:,r,p,y,"
+ GETOPT_OPTIONS="n:,f,r,p,y,"
PARAMETERS="$(getopt --longoptions ${GETOPT_LONGOPTIONS} --name=${COMMAND} --options ${GETOPT_OPTIONS} --shell sh -- ${@})"
@@ -85,6 +85,9 @@ Parameters ()
Usage ()
{
echo "Usage: ${PROGRAM} ${COMMAND} -n|--name NAME [-f|--full-upgrade] [-r|--autoremove] [-p|--purge] [-y|--yes]" >&2
+ echo
+ echo "See ${COMMAND}(1), ${PROGRAM}(1) and ${PROJECT}(7) for more information."
+
exit 1
}
@@ -120,7 +123,7 @@ do
case "${FULL_UPGRADE}" in
true)
- container run -n ${NAME} -- "apt update && ${YES} full-upgrade"
+ container run -n ${NAME} -- "apt update && apt ${YES} full-upgrade"
;;
esac