From 286f3b6f6561b41c054840b778fd82cac23bd542 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 7 Dec 2021 10:53:34 +0000 Subject: [PATCH] Check if systemd is running --- roles/home-cli/files/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/home-cli/files/bashrc b/roles/home-cli/files/bashrc index 8df0396..d4f5214 100644 --- a/roles/home-cli/files/bashrc +++ b/roles/home-cli/files/bashrc @@ -212,7 +212,7 @@ usermotd () { fi uptime echo "LANG=$LANG" - if [ -x /usr/bin/timedatectl ] + if [ -x /usr/bin/timedatectl ] && [ "x$(systemctl is-system-running)" != "xoffline" ] then timedatectl show --property=Timezone | sed 's/Timezone=/TZ=/' fi