diff options
| -rw-r--r-- | TODO.org | 2 | ||||
| -rwxr-xr-x | custom/install-archzfs | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -33,7 +33,7 @@ This would make SSH access easier without needing to find the IP address. Already have avahi package installed - just need to configure/enable it. -** TODO [#C] Add date/timestamp to install-archzfs.log +** DONE [#C] Add date/timestamp to install-archzfs.log Add a date/timestamp header to /tmp/install-archzfs.log when the installer starts. This helps identify when an installation was run when reviewing logs later. diff --git a/custom/install-archzfs b/custom/install-archzfs index 0f1e45f..1da4b51 100755 --- a/custom/install-archzfs +++ b/custom/install-archzfs @@ -49,6 +49,13 @@ NO_ENCRYPT="no" # Skip ZFS encryption (for testing only) LOGFILE="/tmp/install-archzfs.log" exec > >(tee -a "$LOGFILE") 2>&1 +# Log header with timestamp +echo "" +echo "================================================================================" +echo "install-archzfs started @ $(date +'%Y-%m-%d %H:%M:%S')" +echo "================================================================================" +echo "" + info() { echo "[INFO] $1"; } warn() { echo "[WARN] $1"; } error() { echo "[ERROR] $1"; exit 1; } |
