|
|
@ -4,6 +4,7 @@ source .env 2>&1 > /dev/null |
|
|
|
set +a |
|
|
|
set +a |
|
|
|
|
|
|
|
|
|
|
|
DateTimeStamp=$(date +\%D_\%T) |
|
|
|
DateTimeStamp=$(date +\%D_\%T) |
|
|
|
|
|
|
|
log_file=/var/log/hash-files.log |
|
|
|
|
|
|
|
|
|
|
|
## Functions |
|
|
|
## Functions |
|
|
|
############ |
|
|
|
############ |
|
|
@ -11,7 +12,9 @@ DateTimeStamp=$(date +\%D_\%T) |
|
|
|
write_log () { |
|
|
|
write_log () { |
|
|
|
#echo " ++ Write to log. |
|
|
|
#echo " ++ Write to log. |
|
|
|
# +++++++++++++++" |
|
|
|
# +++++++++++++++" |
|
|
|
printf '%s hash-files: %s\n' "$DateTimeStamp" "$1" |
|
|
|
## Use on systems managed with systemd |
|
|
|
|
|
|
|
# printf 'hash-files: %s\n' "$1" | systemd-cat |
|
|
|
|
|
|
|
printf '%s hash-files: %s\n' "$DateTimeStamp" "$1" >> $log_file |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
create_list_of_files () { |
|
|
|
create_list_of_files () { |
|
|
|