Skip to content

Commit 8ea93b6

Browse files
committed
move user config files out of git
1 parent 63c7ac2 commit 8ea93b6

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

config.php

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
<?php
2-
// This file overrules the defaults set in config_defaults.php
3-
// Use this file change your settings.
4-
5-
if(file_exists('config_defaults.php')) {
6-
require_once('config_defaults.php');
7-
}
8-
else {
9-
die('ERROR: Unable to open required file (config_defaults.php)');
10-
}
2+
// DO NOT EDIT THIS FILE DIRECTLY!
3+
// This file contains the default settings. These are overruled by config_user.php if it exists
4+
// If you want to change these settings, copy config_user.php.example to config_user.php and make the changes there
115

126
// Configure the path of the BrewPi script for this instance of the
137
// web interface. Do not include the trailing / on the path.
14-
# $scriptPath = '/home/brewpi';
15-
?>
8+
$scriptPath = '/home/brewpi';
9+
10+
if(file_exists('config_user.php')) {
11+
require_once('config_user.php');
12+
}

config_defaults.php

-4
This file was deleted.

config_user.php.example

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
// The default settings in config.php are overruled by the settings in config_user.php
3+
// To use custom settings, copy this file to config_user.php and make your changes in config_user.php
4+
// do not add a php closing tag, because newlines after closing tag might be included in the html
5+
6+
// Do not include a trailing slash on the path
7+
// $scriptPath = '/home/brewpi';

0 commit comments

Comments
 (0)