Don't require executable or startup for services
This commit is contained in:
parent
c97e0fedfb
commit
c9420cdd7e
|
@ -47,8 +47,8 @@ class Service
|
||||||
'name' => 'required|string|min:1|max:255',
|
'name' => 'required|string|min:1|max:255',
|
||||||
'description' => 'required|string',
|
'description' => 'required|string',
|
||||||
'file' => 'required|regex:/^[\w.-]{1,50}$/',
|
'file' => 'required|regex:/^[\w.-]{1,50}$/',
|
||||||
'executable' => 'required|max:255|regex:/^(.*)$/',
|
'executable' => 'max:255|regex:/^(.*)$/',
|
||||||
'startup' => 'required|string'
|
'startup' => 'string'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($validator->fails()) {
|
if ($validator->fails()) {
|
||||||
|
@ -76,8 +76,8 @@ class Service
|
||||||
'name' => 'sometimes|required|string|min:1|max:255',
|
'name' => 'sometimes|required|string|min:1|max:255',
|
||||||
'description' => 'sometimes|required|string',
|
'description' => 'sometimes|required|string',
|
||||||
'file' => 'sometimes|required|regex:/^[\w.-]{1,50}$/',
|
'file' => 'sometimes|required|regex:/^[\w.-]{1,50}$/',
|
||||||
'executable' => 'sometimes|required|max:255|regex:/^(.*)$/',
|
'executable' => 'sometimes|max:255|regex:/^(.*)$/',
|
||||||
'startup' => 'sometimes|required|string'
|
'startup' => 'sometimes|string'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($validator->fails()) {
|
if ($validator->fails()) {
|
||||||
|
|
Loading…
Reference in New Issue