Fix log dir ownership

When the packages are generated as root the appflow log directory
gets ownership oneadmin:oneadmin
This commit is contained in:
Javi Fontan committed 2012-09-24 17:28:27 +02:00
1 parent a06f36c6a0
commit 91a6dd4336
1 file changed
+5 -1
+5 -1
View File
@@ -35,13 +35,17 @@ rm $NAME
DIRS="apptools env flow market"
export DESTDIR=$PWD/tmp
if [ "$(id -u)" = "0" ]; then
OWNER_FLAGS='-u oneadmin -g oneadmin'
fi
rm -rf $DESTDIR
mkdir $DESTDIR
for TOOL in $DIRS; do
(
cd $TOOL
./install.sh
./install.sh $OWNER_FLAGS
)
done