mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-09-29 10:06:41 +00:00
10 lines
351 B
Bash
Executable File
10 lines
351 B
Bash
Executable File
#!/bin/sh
|
|
# Marks each start of an OCI container in its console log, so the log can be
|
|
# read from the last start. Run by the container's lxc.hook.pre-start.
|
|
case "$1" in
|
|
''|*[!0-9]*) exit 0 ;;
|
|
esac
|
|
printf '\n=== ProxMenux: container started %s ===\n' "$(date '+%Y-%m-%d %H:%M:%S')" \
|
|
>> "/var/log/proxmenux/oci/$1.console.log" 2>/dev/null
|
|
exit 0
|