b8129d8b0f
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
26 lines
587 B
Bash
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
|