Skip to content

Commit

Permalink
fix(install.sh): grep ntp status
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian authored Jun 27, 2019
1 parent 3fc1fb2 commit 7f0662b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ elif [[ ! -z $RPM ]]; then
sudo yum install ntp -y -q
fi

if [ -z "$(sudo service ntp status)" ] ; then
if [ -z "$(sudo service ntp status |grep running)" ] ; then
sudo ntpd -gq
fi

Expand Down

0 comments on commit 7f0662b

Please sign in to comment.