today
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ for log in /4server/data/00*/logs/odoo.log; do
|
||||
|
||||
# Copy preserving permissions, then truncate the live log
|
||||
PERMS=$(stat -c '%a' "$log")
|
||||
OWNER=$(stat -c '%U:%G' "$log")
|
||||
OWNER=$(stat -c '%u:%g' "$log")
|
||||
cp "$log" "$ARCHIVE"
|
||||
: > "$log"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user