1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/www/twms/files/pkg-install.in
2010-09-08 15:27:32 +00:00

17 lines
325 B
Bash

#!/bin/sh
USER=%%USER%%
GROUP=%%GROUP%%
CACHEDIR=%%CACHEDIR%%
if [ "$2" = "POST-INSTALL" ]; then
if [ ! -d "%%CACHEDIR%%" ]; then
mkdir -p "%%CACHEDIR%%/cache" || exit 1
mkdir -p "%%CACHEDIR%%/traces" || exit 1
chown -R "$USER:$GROUP" "%%CACHEDIR%%" || exit 1
chmod -R 0775 "%%CACHEDIR%%" || exit 1
fi
fi
exit 0