Skip to content

Commit

Permalink
Packaging: specfile fix
Browse files Browse the repository at this point in the history
This fixes an posttrans script error in the spec file.
  • Loading branch information
fbergkemper committed Oct 5, 2016
1 parent d4ee341 commit 1739003
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packaging/obs/bareos-webui.spec
Expand Up @@ -118,6 +118,7 @@ echo %version | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' > %{buildroo
# if the old config file don't exists but we have created a backup before,
# restore the old config file.
# Remove our backup, if it exists.
# This update helper should be removed wih bareos-17.x.

%define post_backup_file() \
if [ -f %1 ]; then \
Expand All @@ -136,12 +137,14 @@ fi; \

%post
%post_backup_file /etc/bareos/bareos-dir.d/webui-consoles.conf
%posttrans_restore_file /etc/bareos/bareos-dir.d/webui-consoles.conf
%post_backup_file /etc/bareos/bareos-dir.d/webui-profiles.conf
%posttrans_restore_file /etc/bareos/bareos-dir.d/webui-profiles.conf
a2enmod setenv &> /dev/null || true
a2enmod rewrite &> /dev/null || true

%posttrans
%posttrans_restore_file /etc/bareos/bareos-dir.d/webui-consoles.conf
%posttrans_restore_file /etc/bareos/bareos-dir.d/webui-profiles.conf

%if 0%{?suse_version} >= 1315
# 1315:
# SLES12 (PHP 7)
Expand Down

0 comments on commit 1739003

Please sign in to comment.