Skip to content

Commit

Permalink
Merge pull request #217 from JordanP/patch-2
Browse files Browse the repository at this point in the history
Try using /usr/local/bin/runarchipel as archipel-agent binary if 'which runarchipel' fails. Should fix #212

Reviewed.
  • Loading branch information
Antoine Mercadal committed Aug 19, 2011
2 parents e4549ea + 0ed63aa commit 1de8c34
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ArchipelAgent/archipel-agent/install/etc/init.d/archipel
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
### END INIT INFO

ARCHIPEL=`which runarchipel`
if [ $? -eq 1 ]; then
ARCHIPEL=/usr/local/bin/runarchipel
if [ ! -e "$ARCHIPEL" ]; then
echo 'Archipel exe not found !'
exit 1
fi
fi
PROG=$(basename $ARCHIPEL)
PROGNAME="Archipel"
ARCHIPEL_CONF_FILE="/etc/archipel/archipel.conf"
Expand Down

0 comments on commit 1de8c34

Please sign in to comment.