change permissions
This commit is contained in:
parent
44aaccd08b
commit
b485f3008a
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
scriptVersion="1.0.10"
|
scriptVersion="1.0.2"
|
||||||
|
|
||||||
######## Settings
|
######## Settings
|
||||||
scriptInterval="15m"
|
scriptInterval="15m"
|
||||||
|
@ -21,8 +21,10 @@ if [ -f "/config/logs/QueueCleaner.txt" ]; then
|
||||||
find /config/logs -type f -name "QueueCleaner.txt" -size +1024k -delete
|
find /config/logs -type f -name "QueueCleaner.txt" -size +1024k -delete
|
||||||
fi
|
fi
|
||||||
|
|
||||||
touch "/config/logs/QueueCleaner.txt"
|
if [ ! -f "/config/logs/QueueCleaner.txt" ]; then
|
||||||
chmod 666 "/config/logs/QueueCleaner.txt"
|
touch "/config/logs/QueueCleaner.txt"
|
||||||
|
chmod 777 "/config/logs/QueueCleaner.txt"
|
||||||
|
fi
|
||||||
exec &> >(tee -a "/config/logs/QueueCleaner.txt")
|
exec &> >(tee -a "/config/logs/QueueCleaner.txt")
|
||||||
|
|
||||||
QueueCleanerProcess () {
|
QueueCleanerProcess () {
|
||||||
|
|
Loading…
Reference in a new issue