[*] 修改为 group
This commit is contained in:
@@ -46,8 +46,14 @@ server ntp5.aliyun.com iburst
|
||||
driftfile /var/lib/chrony/drift
|
||||
allow 127.0.0.1
|
||||
EOF
|
||||
|
||||
if pidof systemd >/dev/null 2>&1; then
|
||||
systemctl restart chrony && systemctl enable chrony
|
||||
else
|
||||
echo "systemctl 不存在,跳过 chrony 的重启"
|
||||
fi
|
||||
|
||||
# fix vim 粘贴
|
||||
if ! grep -q "set pastetoggle=" ~/.vimrc; then
|
||||
echo "set pastetoggle=" >> ~/.vimrc
|
||||
fi
|
||||
Reference in New Issue
Block a user