update date and time
This commit is contained in:
parent
006305ab4f
commit
e4c2b4f26b
24
inst-raps.sh
24
inst-raps.sh
@ -128,3 +128,27 @@ 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 "
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# 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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user