Skip to content

Commit

Permalink
add missing directories
Browse files Browse the repository at this point in the history
Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
  • Loading branch information
joergsteffens authored and Marco van Wieringen committed Feb 17, 2015
1 parent 9786899 commit e6c860d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile.in
Expand Up @@ -4,6 +4,7 @@
@MCOMMON@

working_dir = @working_dir@
log_dir = @logdir@
dir_group = @dir_group@
dir_user = @dir_user@

Expand Down Expand Up @@ -102,6 +103,10 @@ installdirs:
$(MKDIR) $(DESTDIR)$(working_dir); \
chmod 770 $(DESTDIR)$(working_dir); \
fi

$(MKDIR) $(DESTDIR)$(log_dir);
chmod 775 $(DESTDIR)$(log_dir);

-if test "x$(dir_user)" != "x" ; then \
chown $(dir_user) $(DESTDIR)$(working_dir); \
fi
Expand Down
4 changes: 3 additions & 1 deletion platforms/rpms/bareos.spec
Expand Up @@ -433,7 +433,7 @@ export MTX=/usr/sbin/mtx
--with-plugindir=%{plugin_dir} \
--with-pid-dir=%{pid_dir} \
--with-bsrdir=%{bsr_dir} \
--with-logdir=%{_logdir}/bareos \
--with-logdir=/var/log/bareos \
--with-subsys-dir=%{_subsysdir} \
--enable-smartalloc \
--disable-conio \
Expand Down Expand Up @@ -666,6 +666,7 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%if 0%{?systemd_support}
%{_unitdir}/bareos-sd.service
%endif
%attr(0775, %{storage_daemon_user}, %{daemon_group}) %dir /var/lib/bareos/storage

%files filedaemon
# fd package (bareos-fd, plugins)
Expand Down Expand Up @@ -700,6 +701,7 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%{_libdir}/libbareosfind.so
%{_libdir}/libbareosndmp-%{_libversion}.so
%{_libdir}/libbareosndmp.so
%attr(0775, %{daemon_user}, %{daemon_group}) %dir /var/log/bareos

#
# Generic stuff needed for all software so stuffed into libs package
Expand Down

0 comments on commit e6c860d

Please sign in to comment.