Skip to content

Commit

Permalink
Merge pull request #52 from gregnorth/initd-script-fix
Browse files Browse the repository at this point in the history
Assigning init.d script param to a variable
  • Loading branch information
Jmcfar committed Feb 12, 2016
2 parents 22db334 + 4570f4e commit 15e3af3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.d/codedeploy-agent
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# the deployment artifacts on to this instance.
### END INIT INFO


COMMAND=$1
RETVAL=0
[ -f /etc/profile ] && [ "`stat --format '%U %G' /etc/profile`" == "root root" ] && source /etc/profile

Expand Down Expand Up @@ -59,7 +59,7 @@ update() {
$INSTALLER auto #Update the agent
}

case "$1" in
case "$COMMAND" in
start)
start
;;
Expand Down

0 comments on commit 15e3af3

Please sign in to comment.