Skip to content

Commit

Permalink
Merge pull request learningequality#19 from mrshu/bash_everywhere
Browse files Browse the repository at this point in the history
Fixing running shell scripts always in bash
  • Loading branch information
jamalex committed Jan 9, 2013
2 parents fceb43e + a8899c1 commit 126e436
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kalite/cronstop.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

pids=`ps aux | grep cronserver.py | grep -v "grep" | awk '{print $2}'`

if [ "$pids" ]; then
Expand Down
2 changes: 2 additions & 0 deletions kalite/serverstop.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

cd `dirname "${BASH_SOURCE[0]}"`
if [ -f "runwsgiserver.pid" ];
then
Expand Down
2 changes: 2 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

cd `dirname "${BASH_SOURCE[0]}"`/kalite

# move any previously downloaded content from the old location to the new
Expand Down
2 changes: 2 additions & 0 deletions stop.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

cd `dirname "${BASH_SOURCE[0]}"`/kalite
./serverstop.sh
./cronstop.sh

0 comments on commit 126e436

Please sign in to comment.