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
|
#!/usr/bin/with-contenv bash
|
||||||
scriptVersion="1.0.3"
|
scriptVersion="1.0.4"
|
||||||
|
|
||||||
######## Settings
|
######## Settings
|
||||||
scriptInterval="15m"
|
scriptInterval="15m"
|
||||||
|
|
||||||
######## Package dependencies installation
|
######## Package dependencies installation
|
||||||
PackageInstallation () {
|
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
|
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
|
||||||
|
echo "Done"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Logging output function
|
# Logging output function
|
||||||
|
|
Loading…
Reference in a new issue