Skip to content

Commit

Permalink
installer for app without sudo and for daemon with sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
motom001 committed Sep 24, 2015
1 parent 795b14f commit 8834ab7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ before_install:
- .travis/before_install.sh

install:
- sudo -H python setup.py install
- .travis/install.sh

script:
- .travis/script.sh
Expand Down
7 changes: 7 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
set -e # Exit immediately if a command exits with a non-zero status.
set -x # Print commands and their arguments as they are executed.

if [[ $START_MODE = "application" ]]; then
python setup.py install
fi

if [[ $START_MODE = "daemon" ]]; then
sudo -H python setup.py install
fi

0 comments on commit 8834ab7

Please sign in to comment.