From 8394212df7ebb3389bab0db80c8b545525db3c64 Mon Sep 17 00:00:00 2001 From: "Wahlstedt, Walter" Date: Mon, 23 Nov 2015 15:49:08 -0500 Subject: [PATCH] update tzone for centos7 --- snipeit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snipeit.sh b/snipeit.sh index 0793f111e4..c31fdf3236 100644 --- a/snipeit.sh +++ b/snipeit.sh @@ -458,7 +458,7 @@ case $distro in #Modify the Snipe-It files necessary for a production environment. echo "## Modify the Snipe-It files necessary for a production environment." echo " Setting up Timezone." - tzone=$(grep ZONE /etc/sysconfig/clock | tr -d '"' | sed 's/ZONE=//g'); + tzone=$(timedatectl | gawk -F'[: ]+' ' $2 ~ /Timezone/ {print $3}'); sed -i "s,UTC,$tzone,g" $webdir/$name/app/config/app.php echo " Setting up bootstrap file."