From 68ecf912195cb15537555d6bcaae19a8b7f267cc Mon Sep 17 00:00:00 2001 From: Cody Cook Date: Sun, 5 Nov 2017 13:04:17 -0800 Subject: [PATCH 1/2] Add advance config flag Make custom changes to update_ombi.conf in same directory as script being run Add descriptions to config options --- update_ombi.sh | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/update_ombi.sh b/update_ombi.sh index 9800c79..3dd2422 100644 --- a/update_ombi.sh +++ b/update_ombi.sh @@ -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=*) @@ -205,4 +221,4 @@ fi .log 6 "Cleaning up..." rm -rf "$tempdir"/* "$tempdir" -.log 6 "Update complete" \ No newline at end of file +.log 6 "Update complete" From 8e3615b0c6d5f3e31ba85ea57c896d669e1e7ebf Mon Sep 17 00:00:00 2001 From: didyouexpectthat Date: Sun, 5 Nov 2017 13:22:13 -0800 Subject: [PATCH 2/2] add .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a4884d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +update_ombi.conf