Skip to content

Commit fd9dddd

Browse files
Merge pull request #2 from hockeygoalie35/dev
V1.4 - py pull version from bash script
2 parents 5a1e5ac + afe95ad commit fd9dddd

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

lidarr/ARLChecker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/with-contenv bash
22
### Default values
3-
scriptVersion="1.3"
3+
scriptVersion="1.4.0"
44
scriptName="ARLChecker"
55
sleepInterval='24h'
66
### Import Settings

lidarr/python/ARLChecker.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@
1111
import os
1212
from datetime import datetime
1313

14+
# Pull script version from previous
15+
VERSION = '0.0.0'
16+
with open("/custom-services.d/ARLChecker", "r") as r:
17+
for line in r:
18+
if 'scriptVersion' in line:
19+
VERSION = re.search(r'"([A-Za-z0-9_\./\\-]*)"', line)[0].replace('"','')
1420

15-
VERSION = 0.1
1621

1722
# Logging Setup
1823
logging.basicConfig(

lidarr/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Container: <https://docs.linuxserver.io/images/docker-lidarr>
88

99
1. Add 2 volumes to your container
1010
`/custom-services.d` and `/custom-cont-init.d` (do not map to the same local folder...)
11-
Docker Run Example:
12-
`-v /path/to/preferred/local/folder-01:/custom-services.d`
11+
Docker Run Example:<br>
12+
`-v /path/to/preferred/local/folder-01:/custom-services.d`<br>
1313
`-v /path/to/preferred/local/folder-02:/custom-cont-init.d`
1414
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:
15-
`-v /path/to/preferred/local/folder-02:/custom-cont-init.d`
15+
`/custom-cont-init.d`
1616
3. Start your container and wait for the application to load
1717
4. Optional: Customize the configuration by modifying the following file `/config/extended.conf`
1818
5. Restart the container

0 commit comments

Comments
 (0)