removed -U option and check-update before update
This commit is contained in:
parent
0a0f8558fe
commit
dcb9dd29cd
@ -60,14 +60,12 @@ function check_update() {
|
||||
}
|
||||
|
||||
function update() {
|
||||
if ! check_update; then
|
||||
systemctl --user stop {{ container }}
|
||||
podman container rm {{ container }}
|
||||
create_container
|
||||
generate_systemd_unit_file
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable --now {{ container }}.service
|
||||
fi
|
||||
systemctl --user stop {{ container }}
|
||||
podman container rm {{ container }}
|
||||
create_container
|
||||
generate_systemd_unit_file
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable --now {{ container }}.service
|
||||
}
|
||||
|
||||
|
||||
@ -83,7 +81,7 @@ Usage ${0##*/} [options..]
|
||||
-S, --stop stop {{ container }} container
|
||||
-i, --is-running check to see if container service is running
|
||||
-u, --check-update check if there are image updates avaiable
|
||||
-U, --update perform image update if it exists
|
||||
--update perform image update if it exists
|
||||
-g, --generate-systemd generate user systemd service unit file
|
||||
EOF
|
||||
}
|
||||
@ -128,7 +126,7 @@ while :; do
|
||||
check_update
|
||||
shift
|
||||
;;
|
||||
-U|--update)
|
||||
--update)
|
||||
update
|
||||
shift
|
||||
;;
|
||||
|
Reference in New Issue
Block a user