v1.0.1 - permissions fix

pull/49/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 4330606763
commit 0a1d60b7e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.002"
scriptVersion="1.0.1"
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then
arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
@ -18,8 +18,10 @@ if [ -f "/config/logs/AutoExtras.txt" ]; then
find /config/logs -type f -name "AutoExtras.txt" -size +1024k -delete
fi
touch "/config/logs/AutoExtras.txt"
chmod 666 "/config/logs/AutoExtras.txt"
if [ ! -f "/config/logs/AutoExtras.txt" ]; then
touch "/config/logs/AutoExtras.txt"
chmod 777 "/config/logs/AutoExtras.txt"
fi
exec &> >(tee -a "/config/logs/AutoExtras.txt")
log () {

Loading…
Cancel
Save