From e4c2b4f26b8f6396123df69a9fa38f481c8f13dd Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Tue, 21 May 2024 23:57:46 +0200 Subject: [PATCH] update date and time --- inst-raps.sh | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/inst-raps.sh b/inst-raps.sh index 82ae0de..3b59d0a 100755 --- a/inst-raps.sh +++ b/inst-raps.sh @@ -127,4 +127,28 @@ printSuccess "Ansible installed successfully" printInfo "Add ./.local/bin in path" echo "export PATH=~/.local/bin:\$PATH" >> ~/.bashrc if [ $? -ne 0 ]; then printError "Problem to install ansible";exit; fi -printSuccess "./.local/bin added in path successfully " \ No newline at end of file +printSuccess "./.local/bin added in path successfully " + +#----------------------------------------------------------------------------- +# update date and time +#----------------------------------------------------------------------------- +printInfo "Update date and time" +chronyc -a makestep +if [ $? -ne 0 ]; then printError "Problem to update date and time";exit; fi +printSuccess "Date and Time updated successfully" + +#----------------------------------------------------------------------------- +# set timezone +#----------------------------------------------------------------------------- +#printInfo "Set timzone" +#timedatectl set-timezone Europe/Zurich +#if [ $? -ne 0 ]; then printError "Problem to set timezone";exit; fi +#printSuccess "Timezone setted successfully" + +#----------------------------------------------------------------------------- +# set locale +#----------------------------------------------------------------------------- +#printInfo "Set timzone" +#timedatectl set-timezone Europe/Zurich +#if [ $? -ne 0 ]; then printError "Problem to set timezone";exit; fi +#printSuccess "Timezone setted successfully"