~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to load-data.sh

  • Committer: Usman Akeju
  • Date: 2011-03-31 14:54:44 UTC
  • mto: (1.26.1 push-trunk) (7.1.1 mayon)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: usman.akeju@mail.cuny.edu-20110331145444-tflnl36wscbutjql
- removes references to data/indexes/ from INSTALL instructions
- updates load-data.sh dev script to use newer $() instead of deprecates backticks

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
 
PROJECT_ROOT=`dirname $0`
 
2
PROJECT_ROOT=$(dirname $0)
3
3
 
4
4
# echoes commands as they're executed
5
5
set -x
8
8
set -e
9
9
 
10
10
# Tries to infer the web user from a running Apache instance
11
 
WEB_USER=`ps axho user,comm|grep -E "httpd|apache"|uniq|awk 'END {print $1}'`
 
11
WEB_USER=$(ps axho user,comm|grep -E "httpd|apache"|uniq|awk 'END {print $1}')
12
12
WEB_GROUP=$WEB_USER
13
13
 
14
14
# Tries to prompt for sudo password early on