Merge pull request #2 from hockeygoalie35/dev
V1.4 - py pull version from bash script
This commit is contained in:
commit
fd9ddddbb5
3 changed files with 10 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
### Default values
|
||||
scriptVersion="1.3"
|
||||
scriptVersion="1.4.0"
|
||||
scriptName="ARLChecker"
|
||||
sleepInterval='24h'
|
||||
### Import Settings
|
||||
|
|
|
@ -11,8 +11,13 @@ import logging
|
|||
import os
|
||||
from datetime import datetime
|
||||
|
||||
# Pull script version from previous
|
||||
VERSION = '0.0.0'
|
||||
with open("/custom-services.d/ARLChecker", "r") as r:
|
||||
for line in r:
|
||||
if 'scriptVersion' in line:
|
||||
VERSION = re.search(r'"([A-Za-z0-9_\./\\-]*)"', line)[0].replace('"','')
|
||||
|
||||
VERSION = 0.1
|
||||
|
||||
# Logging Setup
|
||||
logging.basicConfig(
|
||||
|
|
|
@ -8,11 +8,11 @@ Container: <https://docs.linuxserver.io/images/docker-lidarr>
|
|||
|
||||
1. Add 2 volumes to your container
|
||||
`/custom-services.d` and `/custom-cont-init.d` (do not map to the same local folder...)
|
||||
Docker Run Example:
|
||||
`-v /path/to/preferred/local/folder-01:/custom-services.d`
|
||||
Docker Run Example:<br>
|
||||
`-v /path/to/preferred/local/folder-01:/custom-services.d`<br>
|
||||
`-v /path/to/preferred/local/folder-02:/custom-cont-init.d`
|
||||
2. Download the [script_init.bash](https://github.com/RandomNinjaAtk/arr-scripts/blob/main/lidarr/scripts_init.bash) ([Download Link](https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/scripts_init.bash)) and place it into the following folder:
|
||||
`-v /path/to/preferred/local/folder-02:/custom-cont-init.d`
|
||||
`/custom-cont-init.d`
|
||||
3. Start your container and wait for the application to load
|
||||
4. Optional: Customize the configuration by modifying the following file `/config/extended.conf`
|
||||
5. Restart the container
|
||||
|
|
Loading…
Reference in a new issue