Install gerritbot to /usr/local/bin.

Install gerritbot as an executable script to /usr/local/bin/gerritbot.
Also, update the gerritbot.init script to use this path.

Change-Id: I7b2cb18e14d473427e58389548ea6a11aabd779e
This commit is contained in:
Clark Boylan 2012-07-31 14:06:48 -07:00
parent d15abaa25f
commit 0fbd5d7e84
2 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,7 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="GerritBot"
NAME=gerritbot
DAEMON=/usr/local/gerrit/$NAME
DAEMON=/usr/local/bin/$NAME
DAEMON_ARGS="/home/gerrit2/gerritbot.config"
PIDFILE=/var/run/$NAME/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

View File

@ -52,5 +52,8 @@ setuptools.setup(
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python"
]
],
entry_points={
"console_scripts": ["gerritbot = gerritbot.bot:main"]
}
)