Merge pull request #2 from hockeygoalie35/dev

V1.4 - py pull version from bash script
This commit is contained in:
hockeygoalie35 2024-02-12 22:01:26 -05:00 committed by GitHub
commit fd9ddddbb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 5 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
### Default values ### Default values
scriptVersion="1.3" scriptVersion="1.4.0"
scriptName="ARLChecker" scriptName="ARLChecker"
sleepInterval='24h' sleepInterval='24h'
### Import Settings ### Import Settings

View file

@ -11,8 +11,13 @@ import logging
import os import os
from datetime import datetime 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 Setup
logging.basicConfig( logging.basicConfig(

View file

@ -8,11 +8,11 @@ Container: <https://docs.linuxserver.io/images/docker-lidarr>
1. Add 2 volumes to your container 1. Add 2 volumes to your container
`/custom-services.d` and `/custom-cont-init.d` (do not map to the same local folder...) `/custom-services.d` and `/custom-cont-init.d` (do not map to the same local folder...)
Docker Run Example: Docker Run Example:<br>
`-v /path/to/preferred/local/folder-01:/custom-services.d` `-v /path/to/preferred/local/folder-01:/custom-services.d`<br>
`-v /path/to/preferred/local/folder-02:/custom-cont-init.d` `-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: 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 3. Start your container and wait for the application to load
4. Optional: Customize the configuration by modifying the following file `/config/extended.conf` 4. Optional: Customize the configuration by modifying the following file `/config/extended.conf`
5. Restart the container 5. Restart the container