mirror of
https://github.com/Unimatrix0/update_ombi.git
synced 2025-07-06 04:51:53 -07:00
Add advance config flag
Make custom changes to update_ombi.conf in same directory as script being run Add descriptions to config options
This commit is contained in:
parent
e5445fa59e
commit
68ecf91219
1 changed files with 21 additions and 5 deletions
|
@ -1,21 +1,37 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
## Ensure this is set to the name ##
|
## update_ombi systemd script ##
|
||||||
## of your Ombi systemd service ##
|
## 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"
|
ombiservicename="ombi"
|
||||||
|
|
||||||
## Default variables ##
|
## The update_ombi update log file ##
|
||||||
## Change only if needed ##
|
|
||||||
logfile="/var/log/ombiupdater.log"
|
logfile="/var/log/ombiupdater.log"
|
||||||
|
|
||||||
|
## The path and file of your ombi.service file ##
|
||||||
ombiservicefile="/etc/systemd/system/$ombiservicename.service"
|
ombiservicefile="/etc/systemd/system/$ombiservicename.service"
|
||||||
|
|
||||||
|
## Ombi's installed directory ##
|
||||||
defaultinstalldir="/opt/Ombi"
|
defaultinstalldir="/opt/Ombi"
|
||||||
|
|
||||||
|
## User and Group Ombi runs as ##
|
||||||
defaultuser="ombi"
|
defaultuser="ombi"
|
||||||
defaultgroup="nogroup"
|
defaultgroup="nogroup"
|
||||||
|
|
||||||
|
## Level of verbosity ##
|
||||||
declare -i verbosity=-1
|
declare -i verbosity=-1
|
||||||
|
|
||||||
## Do not modify anything below this line ##
|
## Do not modify anything below this line ##
|
||||||
## unless you know what you are doing ##
|
## 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
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--verbosity|-v=*)
|
--verbosity|-v=*)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue