office/aigaion: Fixed SlackBuild.

Don't install to the build system (caused by using $PKG before
it's been defined).

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2018-04-15 19:58:05 +01:00 committed by Willy Sudiarto Raharjo
parent 6e25073f28
commit b5ab1c4f45

View file

@ -15,7 +15,6 @@ TAG=${TAG:-_SBo}
MAJORVERSION=2
DOCROOT=${DOCROOT:-/var/www/htdocs}
ATTACH=${ATTACH:-$PKG/$DOCROOT/$PRGNAM$MAJORVERSION/attachments}
PHPUSER=${PHPUSER:-root}
PHPGROUP=${PHPGROUP:-apache}
@ -57,7 +56,8 @@ cp -a $TMP/$PRGNAM$MAJORVERSION $PKG/$DOCROOT
# install.zip is packed inside the main zip file
cd $PKG/$DOCROOT/$PRGNAM$MAJORVERSION/install
unzip install.zip
mkdir -p $ATTACH
mkdir -p ${ATTACH:-$PKG/$DOCROOT/$PRGNAM$MAJORVERSION/attachments}
chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/$PRGNAM$MAJORVERSION