diff options
Diffstat (limited to 'www/c-icap/files/pkg-install.in')
-rw-r--r-- | www/c-icap/files/pkg-install.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/www/c-icap/files/pkg-install.in b/www/c-icap/files/pkg-install.in index cfae02ee8292..8e73d8deb510 100644 --- a/www/c-icap/files/pkg-install.in +++ b/www/c-icap/files/pkg-install.in @@ -34,7 +34,6 @@ if [ "$2" = "PRE-INSTALL" ]; then elif [ "$2" = "POST-INSTALL" ]; then if [ ! -d "$LOG_DIR" ]; then mkdir -p "$LOG_DIR" || exit 1 - touch "$LOG_DIR/access.log" "$LOG_DIR/server.log" || exit 1 chown -R "$CICAP_USER:$CICAP_GROUP" "$LOG_DIR" || exit 1 fi @@ -47,6 +46,11 @@ elif [ "$2" = "POST-INSTALL" ]; then mkdir -p "$RUN_DIR" || exit 1 chown "$CICAP_USER:$CICAP_GROUP" "$RUN_DIR" || exit 1 fi + + if [ ! -d "$RUN_DIR/c-icap" ]; then + mkdir -p "$RUN_DIR/c-icap" || exit 1 + chown "$CICAP_USER:$CICAP_GROUP" "$RUN_DIR/c-icap" || exit 1 + fi fi exit 0 |