Fixed bug where the install script would die if you already had installed the dev env before
This commit is contained in:
parent
7d4a03d26d
commit
2d498ecee6
|
@ -64,14 +64,16 @@ echo " *** The system group that is running the http daemon: '$HTTP_GROUP'"
|
||||||
for i in $*
|
for i in $*
|
||||||
do
|
do
|
||||||
echo " *** chown :$HTTP_GROUP $i"
|
echo " *** chown :$HTTP_GROUP $i"
|
||||||
chown :$HTTP_GROUP $i || \
|
if [ -G $i ]; then
|
||||||
{
|
chown :$HTTP_GROUP $i || \
|
||||||
ERN=$?;
|
{
|
||||||
echo "ERROR: chown :$HTTP_GROUP $i -> You should have permissions to set group owner to group '$HTTP_GROUP'";
|
ERN=$?;
|
||||||
exit $ERN;
|
echo "ERROR: chown :$HTTP_GROUP $i -> You should have permissions to set group owner to group '$HTTP_GROUP'";
|
||||||
}
|
exit $ERN;
|
||||||
echo " *** chmod g+sw $i"
|
}
|
||||||
chmod g+sw $i || exit $?
|
echo " *** chmod g+sw $i"
|
||||||
|
chmod g+sw $i || exit $?
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo " *** StorageServer bin/setupDirs.sh END"
|
echo " *** StorageServer bin/setupDirs.sh END"
|
||||||
|
|
Loading…
Reference in New Issue