mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
dd1a6fcb2b
backend storage WWW: http://code.google.com/p/twms/
17 lines
325 B
Bash
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
|