Don't use any scratch dir, handle write-protected installation
This commit is contained in:
parent
a9806ddad0
commit
8bea8a98b2
1 changed files with 7 additions and 3 deletions
|
|
@ -7,9 +7,13 @@ then
|
||||||
echo "Mongod not started"
|
echo "Mongod not started"
|
||||||
else
|
else
|
||||||
mkdir -p -v log/thin/
|
mkdir -p -v log/thin/
|
||||||
#force AGPL
|
#force AGPL
|
||||||
tar cf ../_source.tar -X .gitignore *
|
test -w public -a ! -e public/source.tar &&
|
||||||
mv ../_source.tar public/source.tar
|
tar cf public/source.tar --exclude='source.tar' -X .gitignore *
|
||||||
|
test -e public/source.tar || {
|
||||||
|
echo "Can't find, or even create, public/source.tar. Giving up"
|
||||||
|
exit 2
|
||||||
|
}
|
||||||
bundle exec ruby ./script/websocket_server.rb&
|
bundle exec ruby ./script/websocket_server.rb&
|
||||||
bundle exec thin start $@
|
bundle exec thin start $@
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue