Commit 158377f3 authored by Guido Trotter's avatar Guido Trotter
Browse files

ensure-dirs: don't fail if no rapi log is present



Sometimes a node has never been a master. Or ran rapi. In that case we
need to create the file (because if later rapi gets started, it won't be
able to create it itself).
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 92fd2250
...@@ -47,6 +47,7 @@ _ensure_rundir() { ...@@ -47,6 +47,7 @@ _ensure_rundir() {
_ensure_logdir() { _ensure_logdir() {
_ensure_dir "${GNTLOGDIR}" 0770 "$(_fileset_owner "daemons")" _ensure_dir "${GNTLOGDIR}" 0770 "$(_fileset_owner "daemons")"
touch "${GNTLOGDIR}/rapi-daemon.log"
chown $(_fileset_owner "rapi") "${GNTLOGDIR}/rapi-daemon.log" chown $(_fileset_owner "rapi") "${GNTLOGDIR}/rapi-daemon.log"
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment