File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 111111 ' Suse' => $::operatingsystem ? {
112112 ' SLES' => $::operatingsystemrelease ? {
113113 /11\.[0-4]/ => ' 91' ,
114- default => ' 93 ' ,
114+ default => ' 94 ' ,
115115 },
116116 ' OpenSuSE' => $::operatingsystemrelease ? {
117- ' 13.2 ' => ' 93 ' ,
117+ default => ' 94 ' ,
118118 },
119119 default => undef ,
120120 },
Original file line number Diff line number Diff line change 278278 $bindir = pick($bindir , " /usr/lib/postgresql${version} /bin" )
279279 $datadir = pick($datadir , ' /var/lib/pgsql/data' )
280280 $confdir = pick($confdir , $datadir )
281- $service_status = pick($service_status , " /etc/init.d/${service_name} status" )
282- $service_reload = " /etc/init.d/${service_name} reload"
281+ if $::operatingsystem == ' SLES' and versioncmp($::operatingsystemrelease , 11.4) <= 0 {
282+ $service_status = pick($service_status , " /etc/init.d/${service_name} status" )
283+ $service_reload = " /etc/init.d/${service_name} reload"
284+ } else {
285+ $service_status = pick($service_status , " systemctl status ${service_name} " )
286+ $service_reload = " systemctl reload ${service_name} "
287+ }
283288 $psql_path = pick($psql_path , " ${bindir} /psql" )
284289
285290 $needs_initdb = pick($needs_initdb , true )
You can’t perform that action at this time.
0 commit comments