Fixup merge
This commit is contained in:
parent
8d24e5f168
commit
c8f1335a09
12 changed files with 13 additions and 589 deletions
|
@ -233,10 +233,8 @@ class OptionController extends Controller
|
|||
$repo = new OptionRepository;
|
||||
|
||||
try {
|
||||
$repo->scripts($id, $request->only([
|
||||
'script_install', 'script_upgrade',
|
||||
]));
|
||||
Alert::success('Successfully updated option scripts to be run when servers are installed or updated.')->flash();
|
||||
$repo->scripts($id, $request->only('script_install'));
|
||||
Alert::success('Successfully updated option scripts to be run when servers are installed.')->flash();
|
||||
} catch (DisplayValidationException $ex) {
|
||||
return redirect()->route('admin.services.option.scripts', $id)->withErrors(json_decode($ex->getMessage()));
|
||||
} catch (\Exception $ex) {
|
||||
|
|
|
@ -42,7 +42,7 @@ class OptionController extends Controller
|
|||
return response()->json([
|
||||
'scripts' => [
|
||||
'install' => str_replace(["\r\n", "\n", "\r"], "\n", $server->option->script_install),
|
||||
'upgrade' => str_replace(["\r\n", "\n", "\r"], "\n", $server->option->script_upgrade),
|
||||
// 'upgrade' => str_replace(["\r\n", "\n", "\r"], "\n", $server->option->script_upgrade),
|
||||
'privileged' => $server->option->script_is_privileged,
|
||||
],
|
||||
'env' => $environment->merge([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue