mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
Add default configuration file for droned.
Also mark configuration file as conffiles.
This commit is contained in:
parent
dc3018434e
commit
fbbdba3514
4 changed files with 20 additions and 3 deletions
1
Makefile
1
Makefile
|
@ -48,6 +48,7 @@ test:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp deb/drone/etc/init/drone.conf /etc/init/drone.conf
|
cp deb/drone/etc/init/drone.conf /etc/init/drone.conf
|
||||||
|
test -f /etc/default/drone || cp deb/drone/etc/default/drone /etc/default/drone
|
||||||
cd bin && install -t /usr/local/bin drone
|
cd bin && install -t /usr/local/bin drone
|
||||||
cd bin && install -t /usr/local/bin droned
|
cd bin && install -t /usr/local/bin droned
|
||||||
mkdir -p /var/lib/drone
|
mkdir -p /var/lib/drone
|
||||||
|
|
2
deb/drone/DEBIAN/conffiles
Normal file
2
deb/drone/DEBIAN/conffiles
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/etc/init/drone.conf
|
||||||
|
/etc/default/drone
|
10
deb/drone/etc/default/drone
Normal file
10
deb/drone/etc/default/drone
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Upstart configuration file for droned.
|
||||||
|
|
||||||
|
# Command line options:
|
||||||
|
#
|
||||||
|
# -datasource="drone.sqlite":
|
||||||
|
# -driver="sqlite3":
|
||||||
|
# -path="":
|
||||||
|
# -port=":8080":
|
||||||
|
#
|
||||||
|
#DRONED_OPTS="--port=:80"
|
|
@ -4,5 +4,9 @@ chdir /var/lib/drone
|
||||||
console log
|
console log
|
||||||
|
|
||||||
script
|
script
|
||||||
droned --port=":80"
|
DRONED_OPTS="--port=:80"
|
||||||
|
if [ -f /etc/default/$UPSTART_JOB ]; then
|
||||||
|
. /etc/default/$UPSTART_JOB
|
||||||
|
fi
|
||||||
|
droned $DRONED_OPTS
|
||||||
end script
|
end script
|
Loading…
Reference in a new issue