mirror of
https://github.com/truenas/charts.git
synced 2026-05-16 14:12:59 +08:00
NAS-122965 / 23.10 / fix default value on certificates (#1373)
* fix default value on certificates * re-bump syncthing
This commit is contained in:
@@ -3,7 +3,7 @@ description: WebDAV is a set of extensions to the HTTP protocol which allows use
|
||||
annotations:
|
||||
title: WebDAV
|
||||
type: application
|
||||
version: 1.0.7
|
||||
version: 1.0.8
|
||||
apiVersion: v2
|
||||
appVersion: '1.1.3.2982'
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
|
||||
20
library/ix-dev/community/webdav/migrations/migrate
Executable file
20
library/ix-dev/community/webdav/migrations/migrate
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/python3
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def migrate(values):
|
||||
if values.get('webdavNetwork', {}).get('certificateID', {}) == 0:
|
||||
values['webdavNetwork']['certificateID'] = None
|
||||
|
||||
return values
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) != 2:
|
||||
exit(1)
|
||||
|
||||
if os.path.exists(sys.argv[1]):
|
||||
with open(sys.argv[1], 'r') as f:
|
||||
print(json.dumps(migrate(json.loads(f.read()))))
|
||||
@@ -19,7 +19,7 @@ webdavNetwork:
|
||||
httpPort: 30034
|
||||
https: false
|
||||
httpsPort: 30035
|
||||
certificateID: 0
|
||||
certificateID: null
|
||||
webdavRunAs:
|
||||
user: 568
|
||||
group: 568
|
||||
|
||||
Reference in New Issue
Block a user