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

Commit

Permalink
bugfixes for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Mar 4, 2014
1 parent 7679a87 commit bbd5fe6
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 8 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Expand Up @@ -4,6 +4,7 @@ install: install-am
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
Expand Down
1 change: 1 addition & 0 deletions Makefile.in
Expand Up @@ -484,6 +484,7 @@ install: install-am
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
Expand Down
14 changes: 13 additions & 1 deletion config/application.config.php
Expand Up @@ -44,9 +44,21 @@
'User',
);

/*
if($env == 'development') {
$modules[] = 'ZendDeveloperTools';
$modules[] = 'ZendDeveloperTools';
}
*/

// to display all errors use:

/*
if($env == 'development') {
$modules[] = 'ZendDeveloperTools'; // you may comment only this line out if ZendDeveloperTools are not installed e.g.
error_reporting(E_ALL);
ini_set("display_errors", 1);
}
*/

return array(
// This should be an array of module namespaces used in the application.
Expand Down
8 changes: 4 additions & 4 deletions doc/install/INSTALL.md
Expand Up @@ -28,7 +28,7 @@ cd /var/www/htdocs
* Get the current version from github

```
git clone https://github.com/fbergkemper/barbossa.git
git clone https://github.com/bareos/bareos-webui.git
```

* Change into the barbossa directory
Expand All @@ -49,17 +49,17 @@ See [https://getcomposer.org/](https://getcomposer.org/) for more information an

### Configure Apache

See the example file [bareos-console-web.conf](https://raw.github.com/fbergkemper/barbossa/master/install/apache/bareos-console-web.conf).
See the example file [bareos-console-web.conf](https://raw.github.com/bareos/bareos-webui/master/install/apache/bareos-webui.conf).
You might configure your Apache manually or copy the example configuration with wget from the git repo, e.g.

```
cd /etc/apache2/conf.d
wget https://raw.github.com/fbergkemper/barbossa/master/install/apache/bareos-console-web.conf
wget https://raw.github.com/bareos/bareos-webui/master/install/apache/bareos-webui.conf
```

### Configure the database connection

* Copy barbossa/config/autoload/local.php.dist to barbossa/config/autoload/local.php and edit the local.php file to your needs.
* Copy bareos-webui/config/autoload/local.php.dist to bareos-webui/config/autoload/local.php and edit the local.php file to your needs.

### Configuration to be able to run bconsole commands within the web-frontend

Expand Down
10 changes: 10 additions & 0 deletions init_autoloader.php
Expand Up @@ -42,6 +42,16 @@
)
));
}
} else {
// Zend Framework available in normal include path? Use it.
if( stream_resolve_include_path("Zend/Loader/AutoloaderFactory.php") ) {
include 'Zend/Loader/AutoloaderFactory.php';
Zend\Loader\AutoloaderFactory::factory(array(
'Zend\Loader\StandardAutoloader' => array(
'autoregister_zf' => true
)
));
}
}

if (!class_exists('Zend\Loader\AutoloaderFactory')) {
Expand Down
4 changes: 2 additions & 2 deletions install/apache/bareos-webui.conf
Expand Up @@ -10,8 +10,8 @@
# RewriteLog "/var/log/httpd/mod_rewrite.log"
# RewriteLogLevel 3

SetEnv "APP_ENV" "development"
#SetEnv "APP_ENV" "production"
SetEnv "APPLICATION_ENV" "development"
#SetEnv "APPLICATION_ENV" "production"

Alias /bareos-webui /usr/share/bareos-webui/public
<Directory /usr/share/bareos-webui/public>
Expand Down
2 changes: 1 addition & 1 deletion install/sudoers.d/bareos-webui-bconsole
@@ -1,4 +1,4 @@
# allow apache to run bconsole. required for bareos-webui
Cmnd_Alias BCONSOLE = /usr/sbin/bconsole -n -c /etc/bareos/bconsole.conf, /usr/sbin/bconsole -n -c /etc/bareos/webui/bconsole.conf
Cmnd_Alias BCONSOLE = /usr/sbin/bconsole -n -c /etc/bareos/bconsole.conf, /usr/sbin/bconsole -n -c /etc/bareos/webui/bconsole.conf, /usr/sbin/bconsole
Defaults!BCONSOLE !requiretty
wwwrun,www-data,apache ALL=(root) NOPASSWD: BCONSOLE

0 comments on commit bbd5fe6

Please sign in to comment.