1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/www/twms/files/pkg-install.in
Dmitry Marakasov 7a66c8b4de - Stagify
- Fix rc.d script
- Convert USE_BZIP2 to USES
2014-05-20 23:24:53 +00:00

13 lines
278 B
Bash

#!/bin/sh
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