@@ -115,6 +115,7 @@ public function getProfilePackagesConfiguration(string $profile)
115
115
*/
116
116
$ configuration ['Package_exclude ' ] = $ fullConfiguration ['Package_exclude ' ];
117
117
$ configuration ['Package_exclude_major ' ] = $ fullConfiguration ['Package_exclude_major ' ];
118
+ $ configuration ['Service_reload ' ] = $ fullConfiguration ['Service_reload ' ];
118
119
$ configuration ['Service_restart ' ] = $ fullConfiguration ['Service_restart ' ];
119
120
120
121
return $ configuration ;
@@ -295,7 +296,7 @@ public function duplicate(string $id)
295
296
/**
296
297
* Copy source profile configuration to new profile
297
298
*/
298
- $ this ->model ->configure ($ newProfileId , $ newName , $ profileConf ['Package_exclude ' ], $ profileConf ['Package_exclude_major ' ], $ profileConf ['Service_restart ' ], $ profileConf ['Notes ' ]);
299
+ $ this ->model ->configure ($ newProfileId , $ newName , $ profileConf ['Package_exclude ' ], $ profileConf ['Package_exclude_major ' ], $ profileConf ['Service_reload ' ], $ profileConf [ ' Service_restart ' ], $ profileConf ['Notes ' ]);
299
300
300
301
/**
301
302
* Retrieve source profile repos members
@@ -346,7 +347,7 @@ public function delete(int $id)
346
347
/**
347
348
* Configure profile
348
349
*/
349
- public function configure (int $ id , string $ name , array $ reposIds = null , array $ packagesExcluded = null , array $ packagesMajorExcluded = null , array $ serviceNeedRestart = null , string $ notes )
350
+ public function configure (int $ id , string $ name , array $ reposIds , array $ packagesExcluded , array $ packagesMajorExcluded, array $ serviceNeedReload , array $ serviceNeedRestart , string $ notes )
350
351
{
351
352
if (!IS_ADMIN ) {
352
353
throw new Exception ('You are not allowed to perform this action ' );
@@ -356,7 +357,6 @@ public function configure(int $id, string $name, array $reposIds = null, array $
356
357
$ myHost = new \Controllers \Host ();
357
358
$ myHostRequest = new \Controllers \Host \Request ();
358
359
$ error = 0 ;
359
-
360
360
$ name = \Controllers \Common::validateData ($ name );
361
361
362
362
/**
@@ -498,6 +498,7 @@ public function configure(int $id, string $name, array $reposIds = null, array $
498
498
*/
499
499
$ packagesExcludedExploded = implode (', ' , $ packagesExcluded );
500
500
$ packagesMajorExcludedExploded = implode (', ' , $ packagesMajorExcluded );
501
+ $ serviceNeedReloadExploded = implode (', ' , $ serviceNeedReload );
501
502
$ serviceNeedRestartExploded = implode (', ' , $ serviceNeedRestart );
502
503
503
504
/**
@@ -510,7 +511,7 @@ public function configure(int $id, string $name, array $reposIds = null, array $
510
511
/**
511
512
* Insert new configuration into database
512
513
*/
513
- $ this ->model ->configure ($ id , $ name , $ packagesExcludedExploded , $ packagesMajorExcludedExploded , $ serviceNeedRestartExploded , $ notes );
514
+ $ this ->model ->configure ($ id , $ name , $ packagesExcludedExploded , $ packagesMajorExcludedExploded , $ serviceNeedReloadExploded , $ serviceNeedRestartExploded , $ notes );
514
515
515
516
/**
516
517
* Get all hosts using this profile
0 commit comments