Skip to content

Commit

Permalink
Merge branch 'bareos-15.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Jan 9, 2016
2 parents a14f284 + a040767 commit 2fd2273
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions debian/bareos-database-common.config.in
Expand Up @@ -30,12 +30,16 @@ if [ -r @scriptdir@/bareos-config-lib.sh ]; then
dbc_dbtypes=`echo ${dbc_dbtypes} | sed 's/, *$//'`

# action
param1="$1"
shift || true
if [ $# -gt 0 ]; then
param1="$1"
shift
fi
# $2: when action is "configure": most-recently-configured-version
param2="$1"
param2_orig=$param2
shift || true
if [ $# -gt 0 ]; then
param2="$1"
param2_orig=$param2
shift
fi

# When upgrading from an older version (param2),
# do not pass the version number of the old package.
Expand Down
12 changes: 8 additions & 4 deletions debian/bareos-database-common.postinst.in
Expand Up @@ -25,11 +25,15 @@ if [ -r @scriptdir@/bareos-config-lib.sh ]; then
. /usr/share/dbconfig-common/dpkg/postinst

# action
param1="$1"
shift || true
if [ $# -gt 0 ]; then
param1="$1"
shift
fi
# when action is "configure": most-recently-configured-version
param2="$1"
shift || true
if [ $# -gt 0 ]; then
param2="$1"
shift
fi
if [ "$param2" ]; then
case "$param1" in
configure|reconfigure)
Expand Down
2 changes: 1 addition & 1 deletion platforms/systemd/bareos-dir.service.in
Expand Up @@ -15,7 +15,7 @@
Description=Bareos Director Daemon service
Documentation=man:bareos-dir(8)
Requires=nss-lookup.target network.target remote-fs.target time-sync.target
After=nss-lookup.target network.target remote-fs.target time-sync.target postgresql.service mysql.service
After=nss-lookup.target network.target remote-fs.target time-sync.target postgresql.service mysql.service mariadb.service
# Dependency about the database
# We let administrators decide if they need it (if local db instance)
# Wants=@DEFAULT_DB_TYPE@.service
Expand Down

0 comments on commit 2fd2273

Please sign in to comment.