mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 21:03:22 +00:00
pushing my local branch
This commit is contained in:
2
debian/drone/DEBIAN/conffiles
vendored
Normal file
2
debian/drone/DEBIAN/conffiles
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/etc/init/drone.conf
|
||||
/etc/default/drone
|
7
debian/drone/DEBIAN/control
vendored
Normal file
7
debian/drone/DEBIAN/control
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Package: drone
|
||||
Version: 0.1
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Maintainer: Brad Rydzewski <brad@drone.io>
|
||||
Description: Drone continuous integration server
|
24
debian/drone/DEBIAN/postinst
vendored
Executable file
24
debian/drone/DEBIAN/postinst
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
abort-upgrade|abort-remove|abort-deconfigure|configure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Starting drone ..."
|
||||
if [ -f /etc/init/drone.conf ]; then
|
||||
if pidof /usr/local/bin/droned >/dev/null; then
|
||||
service drone stop || exit $?
|
||||
fi
|
||||
service drone start && echo "Drone started."
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
26
debian/drone/DEBIAN/prerm
vendored
Executable file
26
debian/drone/DEBIAN/prerm
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
case "$1" in
|
||||
remove|remove-in-favour|deconfigure|deconfigure-in-favour)
|
||||
if [ -f /etc/init/drone.conf ]; then
|
||||
echo "Stopping drone ..."
|
||||
service drone stop || exit $?
|
||||
echo "Drone Stopped."
|
||||
fi
|
||||
;;
|
||||
|
||||
upgrade|failed-upgrade)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
11
debian/drone/etc/default/drone
vendored
Normal file
11
debian/drone/etc/default/drone
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Upstart configuration file for droned.
|
||||
|
||||
# Command line options:
|
||||
#
|
||||
# -datasource="drone.sqlite":
|
||||
# -driver="sqlite3":
|
||||
# -path="":
|
||||
# -port=":8080":
|
||||
# -workers="4":
|
||||
#
|
||||
#DRONED_OPTS="--port=:80"
|
12
debian/drone/etc/init/drone.conf
vendored
Normal file
12
debian/drone/etc/init/drone.conf
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
start on (filesystem and net-device-up)
|
||||
|
||||
chdir /var/lib/drone
|
||||
console log
|
||||
|
||||
script
|
||||
DRONED_OPTS="--port=:80"
|
||||
if [ -f /etc/default/$UPSTART_JOB ]; then
|
||||
. /etc/default/$UPSTART_JOB
|
||||
fi
|
||||
droned $DRONED_OPTS
|
||||
end script
|
BIN
debian/drone/usr/local/bin/drone
vendored
Executable file
BIN
debian/drone/usr/local/bin/drone
vendored
Executable file
Binary file not shown.
BIN
debian/drone/usr/local/bin/droned
vendored
Executable file
BIN
debian/drone/usr/local/bin/droned
vendored
Executable file
Binary file not shown.
Reference in New Issue
Block a user