Activate service migration
This commit is contained in:
parent
d087acd512
commit
09685e6994
|
@ -32,6 +32,7 @@ extension ConnectionService {
|
|||
static func migrateJSON(at from: URL, to: URL) {
|
||||
do {
|
||||
let newData = try migrateJSON(at: from)
|
||||
// log.verbose(String(data: newData, encoding: .utf8)!)
|
||||
try newData.write(to: to)
|
||||
} catch let e {
|
||||
log.warning("Could not migrate service: \(e)")
|
||||
|
|
|
@ -55,6 +55,8 @@ class TransientStore {
|
|||
)
|
||||
let cfg = AppConstants.VPN.tunnelConfiguration()
|
||||
do {
|
||||
ConnectionService.migrateJSON(at: servicePath, to: servicePath)
|
||||
|
||||
let data = try Data(contentsOf: servicePath)
|
||||
if let content = String(data: data, encoding: .utf8) {
|
||||
log.verbose("Service JSON:")
|
||||
|
|
Loading…
Reference in New Issue