Add logic to create /pulsar/logs
Without this fix, the autorecovery pod initialisation will fail with error:
`[0.001s][error][logging] Error opening log file 'logs/pulsar_bookie_gc_1.log': No such file or directory`
@@ -183,6 +183,9 @@ fi
BOOKIE_LOG_DIR=${BOOKIE_LOG_DIR:-"$BK_HOME/logs"}
BOOKIE_LOG_FILE=${BOOKIE_LOG_FILE:-"bookkeeper-server.log"}
+if [ ! -d "$BOOKIE_LOG_DIR" ]; then
+ mkdir -p "$BOOKIE_LOG_DIR"
+fi
#Configure log configuration system properties
OPTS="$OPTS -Dpulsar.log.appender=$BOOKIE_LOG_APPENDER"
