destroy old container before creating a new one

This commit is contained in:
2021-05-21 12:16:13 +02:00
parent d6c6972c56
commit 0b02c775d7

View File

@@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
toolbox_version=fedora-toolbox-34
bold=$(tput bold) bold=$(tput bold)
reset=$(tput sgr0) reset=$(tput sgr0)
@@ -11,8 +13,8 @@ packages=(
# basic # basic
'atool' 'p7zip' 'unzip' 'zsh' 'tmux' 'git' 'neovim' 'wl-clipboard' 'bind-utils' 'bmon' 'curl' 'fd-find' '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' 'file' 'htop' 'nmon' 'mosh' 'ranger' 'stow' 'wget' 'youtube-dl' 'net-tools' 'gocryptfs' 'sshfs' 'netcat'
'dstat' 'atop' 'iotop' 'wireguard-tools' 'magic-wormhole' 'khal' 'vdirsyncer' 'dstat' 'atop' 'iotop' 'wireguard-tools' 'magic-wormhole' 'ncdu' 'sqlite' 'hyperfine'
#'khard' 'hledger' 'nnn' #'khal' 'vdirsyncer' 'khard' 'hledger' 'nnn'
# ansible # ansible
'ansible' 'openssh' 'ansible' 'openssh'
# C and compiling # C and compiling
@@ -36,6 +38,12 @@ removals=(
'subversion' 'subversion'
) )
info 'Stopping toolbox ...'
podman stop ${toolbox_version}
info 'Delete old toolbox ...'
toolbox rm ${toolbox_version}
info 'Creating toolbox ...' info 'Creating toolbox ...'
toolbox create toolbox create