NTP 서버 변경 스크립트
RHOSP의 Compute 노드들의 NTP 서버 주소를 변경해야할 일이 있어 만들었던 ntp 변경 스크립트입니다. [root@hk-vm ~]# cat ntp-change.sh #!/bin/bash sleep 1 # ntp.conf backup file check backup=/etc/ntp.conf-backup if [ ! -e $backup ]; then sudo cp -pr /etc/ntp.conf /etc/ntp.conf-backup echo "###################################" echo " $backup file backup successed....." echo "###################################" else echo "$backup fi..