freebsd-ports/net-mgmt/guifi-snpservices/files/pkg-install.in
Kurt Jaeger b8129d8b0f New port: net-mgmt/guifi-snpservices
This software provides graph services in the context of the
Spontaneous Networklink Platform.

WWW: http://es.wiki.guifi.net/wiki/SNPservices

PR:		189904
Submitted by:	tphilipp@potion-studios.com
2014-08-04 09:18:27 +00:00

26 lines
587 B
Bash

#!/bin/sh
CHMOD="/bin/chmod"
MKDIR="/bin/mkdir -p"
SNPSERVICES_TMPDIR=%%SNPSERVICES_TMPDIR%%
case "$2" in
POST-INSTALL)
if [ ! -d "${SNPSERVICES_TMPDIR}/images" ]; then
${MKDIR} "${SNPSERVICES_TMPDIR}/images"
fi
if [ ! -d "${SNPSERVICES_TMPDIR}/logs" ]; then
${MKDIR} "${SNPSERVICES_TMPDIR}/logs"
fi
if [ ! -d "${SNPSERVICES_TMPDIR}/data" ]; then
${MKDIR} "${SNPSERVICES_TMPDIR}/data"
fi
if [ ! -d "${SNPSERVICES_TMPDIR}/tmp" ]; then
${MKDIR} "$SNPSERVICES_TMPDIR"
${MKDIR} "${SNPSERVICES_TMPDIR}/tmp"
${CHMOD} -R a+rw ${SNPSERVICES_TMPDIR}/tmp
fi
;;
esac
exit 0