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:
parent
05b43f9201
commit
2c750147ad
1 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue