Skip to content

Commit 15e3af3

Browse files
committed
Merge pull request #52 from gregnorth/initd-script-fix
Assigning init.d script param to a variable
2 parents 22db334 + 4570f4e commit 15e3af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

init.d/codedeploy-agent

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# the deployment artifacts on to this instance.
1818
### END INIT INFO
1919

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

@@ -59,7 +59,7 @@ update() {
5959
$INSTALLER auto #Update the agent
6060
}
6161

62-
case "$1" in
62+
case "$COMMAND" in
6363
start)
6464
start
6565
;;

0 commit comments

Comments
 (0)