Called finish, not down

This commit is contained in:
Cat /dev/Nulo 2022-09-16 20:51:02 -03:00
parent 70a4d99fe9
commit 2848afb276

View file

@ -70,7 +70,7 @@ exec ]]..netns_string..[[chpst -u "$USER:$GROUP" podman run --tty --rm \
]]..utils.join_table(arguments, " ")..[[ \
"$IMAGE" 2>/dev/stdout
]]
local down_script = prefix..[[
local finish_script = prefix..[[
chpst -u "$USER:$GROUP" podman stop --ignore "$CONTAINER_NAME" 2>/dev/stdout || exit $?
chpst -u "$USER:$GROUP" podman rm --force --ignore "$CONTAINER_NAME" 2>/dev/stdout || exit $?
@ -84,4 +84,4 @@ local function write_script(file_name, content)
end
write_script("run", run_script)
write_script("down", down_script)
write_script("finish", finish_script)