Skip to content

Commit

Permalink
Merge pull request Unimatrix0#4 from didyouexpectthat/custom_config
Browse files Browse the repository at this point in the history
Custom config
  • Loading branch information
Unimatrix0 authored Nov 6, 2017
2 parents e5445fa + 8e3615b commit 72e5627
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
update_ombi.conf
26 changes: 21 additions & 5 deletions update_ombi.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
#!/bin/bash

## Ensure this is set to the name ##
## of your Ombi systemd service ##
## update_ombi systemd script ##
## Make configuration updates ##
## by changing update_ombi.conf ##
## and store it in the same dir ##
## that runs update_ombi.sh ##


## The systemd unit for Ombi ##
ombiservicename="ombi"

## Default variables ##
## Change only if needed ##
## The update_ombi update log file ##
logfile="/var/log/ombiupdater.log"

## The path and file of your ombi.service file ##
ombiservicefile="/etc/systemd/system/$ombiservicename.service"

## Ombi's installed directory ##
defaultinstalldir="/opt/Ombi"

## User and Group Ombi runs as ##
defaultuser="ombi"
defaultgroup="nogroup"

## Level of verbosity ##
declare -i verbosity=-1

## Do not modify anything below this line ##
## unless you know what you are doing ##

# Import any custom config to override the defaults, if necessary
source "$(dirname $0)/update_ombi.conf" >/dev/null 2>&1

while [ $# -gt 0 ]; do
case "$1" in
--verbosity|-v=*)
Expand Down Expand Up @@ -205,4 +221,4 @@ fi

.log 6 "Cleaning up..."
rm -rf "$tempdir"/* "$tempdir"
.log 6 "Update complete"
.log 6 "Update complete"

0 comments on commit 72e5627

Please sign in to comment.