v1.0.4 - Only install packages if script hasn't previously been run..

If a log file exists for the script, skip the package installation procedure.
This commit is contained in:
RandomNinjaAtk 2023-07-06 18:16:22 -04:00 committed by GitHub
parent 05b43f9201
commit 2c750147ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,17 @@
#!/usr/bin/with-contenv bash
scriptVersion="1.0.3"
scriptVersion="1.0.4"
######## Settings
scriptInterval="15m"
######## Package dependencies installation
PackageInstallation () {
if [ ! -f "/config/logs/QueueCleaner.txt" ]; then
echo "Installing Required Packages..."
apk add -U --update --no-cache curl jq python3-dev py3-pip &>/dev/null
pip install --upgrade --no-cache-dir -U yq &>/dev/null
echo "Done"
fi
}
# Logging output function