config/proc.sh in traquitana-0.0.10 vs config/proc.sh in traquitana-0.0.11
- old
+ new
@@ -4,26 +4,26 @@
# move to the correct directory
cd $1/..
# make a copy of the old contents
echo Making a safe copy of the old contents ...
-zip -q traq/$2.safe.zip `cat traq/$2.list`
+zip -q traq/$2.safe.zip `cat traq/$2.list` &> /dev/null
echo Stored on traq/$2.safe.zip
# install the new files
echo
echo Unzipping the new content
echo -------------------------
-unzip -o traq/$2.zip
+unzip -o traq/$2.zip &> /dev/null
# run migrations if needed
migrations=$(grep "^db/migrate" traq/$2.list)
if [ -n "$migrations" ]; then
echo
echo Running migrations
echo ------------------
- rake db:migrate
+ bundle exec rake db:migrate
fi
# change file permissions on public dir
echo
echo Changing file permissions on public to 0755