Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ _ensure_rundir() {
_ensure_logdir() {
_ensure_dir "${GNTLOGDIR}" 0770 "$(_fileset_owner "daemons")"
touch "${GNTLOGDIR}/rapi-daemon.log"
chown $(_fileset_owner "rapi") "${GNTLOGDIR}/rapi-daemon.log"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment