Removed unused files.
Moved installer files into the ReleaseBuilder
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
# Source build packages locally
|
||||
ARG DOCKER_BUILD_PROXY
|
||||
ENV DOCKER_BUILD_PROXY $DOCKER_BUILD_PROXY
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# Install common build tools
|
||||
RUN set -uex; \
|
||||
export http_proxy=${HTTP_PROXY-${DOCKER_BUILD_PROXY}}; \
|
||||
apt-get update; \
|
||||
apt-get install --no-install-suggests --no-install-recommends -y \
|
||||
build-essential \
|
||||
debhelper \
|
||||
dpkg-dev; \
|
||||
apt-get clean all
|
||||
|
||||
label org.label-schema.name = "duplicati/debian-build" \
|
||||
org.label-schema.version = "20161230" \
|
||||
org.label-schema.vendor="Deployable" \
|
||||
org.label-schema.docker.cmd="docker run -ti duplicati/debian-build" \
|
||||
org.label-schema.schema-version="1.0"
|
||||
@@ -0,0 +1,6 @@
|
||||
duplicati (%VERSION%) unstable; urgency=low
|
||||
|
||||
* New upstream release
|
||||
* See changelog.txt for changes
|
||||
|
||||
-- Duplicati Team <hello@duplicati.com> %DATE%
|
||||
@@ -0,0 +1,23 @@
|
||||
Source: duplicati
|
||||
Section: utils
|
||||
Priority: extra
|
||||
Build-Depends: debhelper-compat (= 13)
|
||||
Maintainer: Kenneth Skovhede <kenneth@duplicati.com>
|
||||
Standards-Version: 3.9.4
|
||||
Homepage: http://duplicati.com
|
||||
Vcs-Git: https://github.com/duplicati/duplicati.git
|
||||
Package: duplicati
|
||||
Architecture: %ARCH%
|
||||
Depends: %DEPENDS%
|
||||
Version: %VERSION%
|
||||
Description: Backup client for encrypted online backups
|
||||
Duplicati is a free open-source backup client that securely stores encrypted, incremental,
|
||||
compressed backups on cloud storage services and remote file servers. It
|
||||
supports targets like Amazon S3, Windows Live SkyDrive, Rackspace Cloud Files
|
||||
or WebDAV, SSH, FTP (and many more).
|
||||
.
|
||||
Duplicati has built-in AES-256 encryption and backups be can signed using GNU
|
||||
Privacy Guard. A built-in scheduler makes sure that backups are always
|
||||
up-to-date. Last but not least, Duplicati provides various options and tweaks
|
||||
like filters, deletion rules, transfer and bandwidth options to run backups
|
||||
for specific purposes.
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: duplicati
|
||||
# Required-Start:
|
||||
# Required-Stop:
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 1
|
||||
# Short-Description: Duplicati
|
||||
### END INIT INFO
|
||||
|
||||
DAEMON=/usr/bin/duplicati-server
|
||||
DAEMON_PROCESS=DuplicatiServer
|
||||
NAME=duplicati
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
DESC="Duplicati backup service"
|
||||
DEFAULT=/etc/default/$NAME
|
||||
|
||||
# Use LSB
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
# If we don't have the basics, don't bother
|
||||
test -x $DAEMON || exit 0
|
||||
test -f $DEFAULT && . $DEFAULT
|
||||
|
||||
running_pid()
|
||||
{
|
||||
# Check if a given process pid's cmdline matches a given name
|
||||
pid=$1
|
||||
name=$2
|
||||
[ -z "$pid" ] && return 1
|
||||
[ ! -d /proc/$pid ] && return 1
|
||||
cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
|
||||
# Is this the expected child?
|
||||
[ "$cmd" != "$name" ] && return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
running()
|
||||
{
|
||||
# Check if the process is running looking at /proc
|
||||
# (works for all users)
|
||||
# No pidfile, probably no daemon present
|
||||
[ ! -f "$PIDFILE" ] && return 1
|
||||
# Obtain the pid and check it against the binary name
|
||||
pid=`cat $PIDFILE`
|
||||
running_pid $pid $DAEMON_PROCESS || return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
log_daemon_msg "Starting $DESC" "$NAME"
|
||||
if running; then
|
||||
log_progress_msg "already running"
|
||||
log_end_msg 0
|
||||
exit 0
|
||||
fi
|
||||
rm -f $PIDFILE
|
||||
start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
|
||||
log_end_msg $?
|
||||
;;
|
||||
stop)
|
||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||
start-stop-daemon --stop --pidfile $PIDFILE
|
||||
log_end_msg $?
|
||||
;;
|
||||
restart|force-reload)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
N=/etc/init.d/$NAME
|
||||
echo "Usage: $N {start|stop|restart|force-reload}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,10 @@
|
||||
# Defaults for duplicati initscript
|
||||
# sourced by /etc/init.d/duplicati
|
||||
# installed at /etc/default/duplicati by the maintainer scripts
|
||||
|
||||
#
|
||||
# This is a POSIX shell fragment
|
||||
#
|
||||
|
||||
# Additional options that are passed to the Daemon.
|
||||
DAEMON_OPTS=""
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Duplicati web-server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Nice=19
|
||||
IOSchedulingClass=idle
|
||||
EnvironmentFile=-/etc/default/duplicati
|
||||
ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user