mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	Bug #4721 makentp -a didn't work on sles11.3
This commit is contained in:
		| @@ -324,9 +324,9 @@ sub process_request { | ||||
|         my $cmd; | ||||
|         if ($os =~ /sles/) { | ||||
|             if (-f "/usr/sbin/rcntpd") { | ||||
|                 $cmd = "rcntpd ntptimeset"; | ||||
|                 $cmd = "/usr/sbin/rcntpd ntptimeset"; | ||||
|             } elsif (-f "/usr/sbin/rcntp") { | ||||
|                 $cmd = "rcntp ntptimeset"; | ||||
|                 $cmd = "/usr/sbin/rcntp ntptimeset"; | ||||
|             } else { | ||||
|                 $cmd = "sntp -P no -r $ntp_master"; | ||||
|             } | ||||
|   | ||||
| @@ -111,9 +111,9 @@ restrict 127.0.0.1" >>$conf_file | ||||
|     #ntpdate program is deprecated on SuSE | ||||
|     if ( pmatch $OSVER "sles*" ) || ( pmatch $OSVER "suse*" ) || [ -f /etc/SuSE-release ]; then | ||||
|         if [ -f /usr/sbin/rcntpd ]; then | ||||
|             cmd="rcntpd ntptimeset" | ||||
|             cmd="/usr/sbin/rcntpd ntptimeset" | ||||
|         elif [ -f /usr/sbin/rcntp ]; then | ||||
|             cmd="rcntp ntptimeset" | ||||
|             cmd="/usr/sbin/rcntp ntptimeset" | ||||
|         else | ||||
|             cmd="sntp -P no -r $ntp_master" | ||||
|         fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user