v1.0.9 - Package installation changes

#1
This commit is contained in:
RandomNinjaAtk 2023-03-19 15:53:35 -04:00 committed by GitHub
parent 5dc4b41537
commit b8d0df09d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,14 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
scriptVersion="1.0.8" scriptVersion="1.0.9"
######## Settings ######## Settings
scriptInterval="15m" scriptInterval="15m"
######## Package dependencies installation ######## Package dependencies installation
PackageInstallation () {
apk add -U --update --no-cache curl jq python3-dev py3-pip &>/dev/null apk add -U --update --no-cache curl jq python3-dev py3-pip &>/dev/null
pip install --upgrade --no-cache-dir -U yq &>/dev/null pip install --upgrade --no-cache-dir -U yq &>/dev/null
}
# Logging output function # Logging output function
log () { log () {
@ -102,10 +104,8 @@ verifyApiAccess () {
done done
} }
if [ "$enableQueueCleaner" == "false" ]; then # Install packages
log "ERROR :: Script disabled, exiting..." PackageInstallation
exit
fi
arrName="$(cat /config/config.xml | xq | jq -r .Config.InstanceName)" arrName="$(cat /config/config.xml | xq | jq -r .Config.InstanceName)"
if [ "$arrName" == "Sonarr" ] || [ "$arrName" == "Radarr" ] || [ "$arrName" == "Lidarr" ]; then if [ "$arrName" == "Sonarr" ] || [ "$arrName" == "Radarr" ] || [ "$arrName" == "Lidarr" ]; then