Files
osintbuddy/ob/cmd/restart
2023-10-28 07:26:14 -06:00

16 lines
273 B
Bash
Executable File

#!/usr/bin/env sh
. cmd/env
run_restart() {
if [ ! -z "$OB_CMD" ] & [ ! -z "$OB_CMD_ARGS" ]; then
ob_compose restart $OB_CMD_ARGS;
ob_compose logs $OB_CMD_ARGS -f
exit 0
else
ob_compose restart;
exit 0
fi
}
run_restart