parent
b3141281eb
commit
60051d3c0d
1 changed files with 4 additions and 3 deletions
|
@ -4,9 +4,10 @@ log () {
|
||||||
}
|
}
|
||||||
|
|
||||||
logfileSetup () {
|
logfileSetup () {
|
||||||
if [ ! -f "/config/logs/$scriptName.txt" ]; then
|
logFileName="$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt"
|
||||||
echo "" > /config/logs/$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt
|
if [ ! -f "/config/logs/$logFileName" ]; then
|
||||||
chmod 666 "/config/logs/$scriptName-_$(date +"%Y_%m_%d_%I_%M_%p").txt"
|
echo "" > "/config/logs/$logFileName"
|
||||||
|
chmod 666 "/config/logs/$logFileName"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue