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() {
|
function update() {
|
||||||
if ! check_update; then
|
|
||||||
systemctl --user stop {{ container }}
|
systemctl --user stop {{ container }}
|
||||||
podman container rm {{ container }}
|
podman container rm {{ container }}
|
||||||
create_container
|
create_container
|
||||||
generate_systemd_unit_file
|
generate_systemd_unit_file
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
systemctl --user enable --now {{ container }}.service
|
systemctl --user enable --now {{ container }}.service
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -83,7 +81,7 @@ Usage ${0##*/} [options..]
|
|||||||
-S, --stop stop {{ container }} container
|
-S, --stop stop {{ container }} container
|
||||||
-i, --is-running check to see if container service is running
|
-i, --is-running check to see if container service is running
|
||||||
-u, --check-update check if there are image updates avaiable
|
-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
|
-g, --generate-systemd generate user systemd service unit file
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
@ -128,7 +126,7 @@ while :; do
|
|||||||
check_update
|
check_update
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-U|--update)
|
--update)
|
||||||
update
|
update
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user