10 lines
210 B
Bash
10 lines
210 B
Bash
#!/usr/bin/env bash
|
|
|
|
function stop() {
|
|
if [[ -z $(podman container ps | grep "$1") ]]; then
|
|
log e "Container '$1' is not running!"
|
|
exit 1
|
|
fi
|
|
log i "Stopping container '$1'"
|
|
stopContainer "$1"
|
|
}
|