diff options
Diffstat (limited to 'www/c-icap/files/pkg-install.in')
-rw-r--r-- | www/c-icap/files/pkg-install.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/c-icap/files/pkg-install.in b/www/c-icap/files/pkg-install.in index b64313cf80c6..3c4dc5980f44 100644 --- a/www/c-icap/files/pkg-install.in +++ b/www/c-icap/files/pkg-install.in @@ -4,8 +4,7 @@ CICAP_USER=cicap CICAP_GROUP=cicap -LOG_PATH=/var/log -TMP_PATH=/var/tmp +LOG_PATH=/var/log/c_icap if [ "$2" = "PRE-INSTALL" ]; then if ! pw groupshow "$CICAP_USER" 2>/dev/null 1>&2; then @@ -29,6 +28,7 @@ if [ "$2" = "PRE-INSTALL" ]; then fi fi elif [ "$2" = "POST-INSTALL" ]; then + [ -d "$LOG_PATH" ] || mkdir -p "$LOG_PATH" || exit 1 touch "$LOG_PATH/access.log" "$LOG_PATH/server.log" || exit 1 chown -R "$CICAP_USER:$CICAP_GROUP" "$LOG_PATH" || exit 1 fi |