mirror of
https://github.com/truenas/charts.git
synced 2026-11-14 06:48:09 +00:00
Update minio/plex/nextcloud migrations to read from a file
This commit is contained in:
1 parent
c2fb3d5d36
commit
531d99bee1
3 files changed
+12
-3
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
@@ -19,4 +20,6 @@ if __name__ == '__main__':
|
|||||||
if len(sys.argv) != 2:
|
if len(sys.argv) != 2:
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
print(json.dumps(migrate(json.loads(sys.argv[1]))))
|
if os.path.exists(sys.argv[1]):
|
||||||
|
with open(sys.argv[1], 'r') as f:
|
||||||
|
print(json.dumps(migrate(json.loads(f.read()))))
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
@@ -20,4 +21,6 @@ if __name__ == '__main__':
|
|||||||
if len(sys.argv) != 2:
|
if len(sys.argv) != 2:
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
print(json.dumps(migrate(json.loads(sys.argv[1]))))
|
if os.path.exists(sys.argv[1]):
|
||||||
|
with open(sys.argv[1], 'r') as f:
|
||||||
|
print(json.dumps(migrate(json.loads(f.read()))))
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
@@ -28,4 +29,6 @@ if __name__ == '__main__':
|
|||||||
if len(sys.argv) != 2:
|
if len(sys.argv) != 2:
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
print(json.dumps(migrate(json.loads(sys.argv[1]))))
|
if os.path.exists(sys.argv[1]):
|
||||||
|
with open(sys.argv[1], 'r') as f:
|
||||||
|
print(json.dumps(migrate(json.loads(f.read()))))
|
||||||
Reference in new issue
Block a user