From 0b02c775d73ce00ee7ee030ab8a6ad74df45c696 Mon Sep 17 00:00:00 2001 From: Marco Kundt Date: Fri, 21 May 2021 12:16:13 +0200 Subject: [PATCH] destroy old container before creating a new one --- bin/toolbox.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/toolbox.sh b/bin/toolbox.sh index b23d492..fa6f569 100644 --- a/bin/toolbox.sh +++ b/bin/toolbox.sh @@ -1,5 +1,7 @@ #!/bin/bash +toolbox_version=fedora-toolbox-34 + bold=$(tput bold) reset=$(tput sgr0) @@ -11,8 +13,8 @@ packages=( # basic 'atool' 'p7zip' 'unzip' 'zsh' 'tmux' 'git' 'neovim' 'wl-clipboard' 'bind-utils' 'bmon' 'curl' 'fd-find' 'file' 'htop' 'nmon' 'mosh' 'ranger' 'stow' 'wget' 'youtube-dl' 'net-tools' 'gocryptfs' 'sshfs' 'netcat' - 'dstat' 'atop' 'iotop' 'wireguard-tools' 'magic-wormhole' 'khal' 'vdirsyncer' - #'khard' 'hledger' 'nnn' + 'dstat' 'atop' 'iotop' 'wireguard-tools' 'magic-wormhole' 'ncdu' 'sqlite' 'hyperfine' + #'khal' 'vdirsyncer' 'khard' 'hledger' 'nnn' # ansible 'ansible' 'openssh' # C and compiling @@ -36,6 +38,12 @@ removals=( 'subversion' ) +info 'Stopping toolbox ...' +podman stop ${toolbox_version} + +info 'Delete old toolbox ...' +toolbox rm ${toolbox_version} + info 'Creating toolbox ...' toolbox create