Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
added file /etc/bareos-webui.conf.php
Browse files Browse the repository at this point in the history
This file is used for custom configuration.
  • Loading branch information
joergsteffens committed Mar 5, 2014
1 parent 50cb8ec commit 8eac764
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 22 deletions.
12 changes: 3 additions & 9 deletions Makefile.am
Expand Up @@ -2,17 +2,11 @@ install: install-am
mkdir -p $(DESTDIR)$(pkgdatadir)
mkdir -p $(DESTDIR)/@HTTPD_CONF@
mkdir -p $(DESTDIR)@sysconfdir@/sudoers.d/
# dnl #mkdir -p $(DESTDIR)@sysconfdir@/@PACKAGE@
# dnl #mkdir -p $(DESTDIR)@sbindir@
cp -p init_autoloader.php $(DESTDIR)$(pkgdatadir)
cp -pr config/ data/ module/ public/ $(DESTDIR)$(pkgdatadir)

# #mkdir -p $(DESTDIR)$(pkgdatadir)/install
cp -pr init_autoloader.php config/ data/ module/ public/ $(DESTDIR)$(pkgdatadir)
cp -p config/autoload/local.php.dist $(DESTDIR)/etc/bareos-webui.conf.php
ln -s /etc/bareos-webui.conf.php $(DESTDIR)/$(pkgdatadir)/config/autoload/local.php
$(INSTALL) -m 0640 install/apache/bareos-webui.conf $(DESTDIR)@HTTPD_CONF@/

$(INSTALL) -m 0440 install/sudoers.d/bareos-webui-bconsole $(DESTDIR)@sysconfdir@/sudoers.d/

# #mv $(DESTDIR)$(pkgdatadir)/application/config.ini $(DESTDIR)@sysconfdir@/@PACKAGE@/config.ini#
# #ln -s @sysconfdir@/@PACKAGE@/config.ini $(DESTDIR)$(pkgdatadir)/application/config.ini

# #$(INSTALL_SCRIPT) install/bareos-webui-config $(DESTDIR)@sbindir@
12 changes: 3 additions & 9 deletions Makefile.in
Expand Up @@ -482,19 +482,13 @@ install: install-am
mkdir -p $(DESTDIR)$(pkgdatadir)
mkdir -p $(DESTDIR)/@HTTPD_CONF@
mkdir -p $(DESTDIR)@sysconfdir@/sudoers.d/
# dnl #mkdir -p $(DESTDIR)@sysconfdir@/@PACKAGE@
# dnl #mkdir -p $(DESTDIR)@sbindir@
cp -p init_autoloader.php $(DESTDIR)$(pkgdatadir)
cp -pr config/ data/ module/ public/ $(DESTDIR)$(pkgdatadir)

# #mkdir -p $(DESTDIR)$(pkgdatadir)/install
cp -pr init_autoloader.php config/ data/ module/ public/ $(DESTDIR)$(pkgdatadir)
cp -p config/autoload/local.php.dist $(DESTDIR)/etc/bareos-webui.conf.php
ln -s /etc/bareos-webui.conf.php $(DESTDIR)/$(pkgdatadir)/config/autoload/local.php
$(INSTALL) -m 0640 install/apache/bareos-webui.conf $(DESTDIR)@HTTPD_CONF@/

$(INSTALL) -m 0440 install/sudoers.d/bareos-webui-bconsole $(DESTDIR)@sysconfdir@/sudoers.d/

# #mv $(DESTDIR)$(pkgdatadir)/application/config.ini $(DESTDIR)@sysconfdir@/@PACKAGE@/config.ini#
# #ln -s @sysconfdir@/@PACKAGE@/config.ini $(DESTDIR)$(pkgdatadir)/application/config.ini

# #$(INSTALL_SCRIPT) install/bareos-webui-config $(DESTDIR)@sbindir@

# Tell versions [3.59,3.63) of GNU make to not export all variables.
Expand Down
4 changes: 2 additions & 2 deletions config/autoload/local.php.dist
Expand Up @@ -2,7 +2,7 @@

/**
*
* Barbossa - A Web-Frontend to manage Bareos
* bareos-webui - A Web-Frontend to manage Bareos
*
* @link http://github.com/fbergkemper/barbossa for the canonical source repository
* @copyright Copyright (c) 2013-2014 dass-IT GmbH (http://www.dass-it.de/)
Expand Down Expand Up @@ -47,7 +47,7 @@ return array(
// Set your hostname here
'host' => 'localhost',
// Set your username here
'username' => 'bareos',
'username' => 'bareos_webui',
// Set your password here
'password' => '',

Expand Down
3 changes: 1 addition & 2 deletions packaging/obs/bareos-webui.spec
Expand Up @@ -104,9 +104,8 @@ rm -rf $RPM_BUILD_ROOT
%doc doc/
%{_datadir}/%{name}/
#attr(-, #daemon_user, #daemon_group) #{_datadir}/#{name}/data
#{_sysconfdir}/#{name}
%config(noreplace) /etc/bareos-webui.conf.php
%config(noreplace) %{_apache_conf_dir}/bareos-webui.conf
#config(noreplace) #{_sysconfdir}/#{name}/config.ini
#/usr/sbin/bareos-webui-config

# /etc/sudoers.d/ should not belong to this package,
Expand Down

0 comments on commit 8eac764

Please sign in to comment.