Re-implement age data upload via SFTP (download will continue to use new method)

This commit is contained in:
2026-01-08 20:39:44 -05:00
parent 07571a698d
commit d0e8640ce6
6 changed files with 52 additions and 30 deletions
+2 -1
View File
@@ -81,12 +81,13 @@ func LibmuttonInit(inputCB func(prompt string) string, rcwPassword []byte, appen
return err
}
// generate and register device ID
sshEntryRoot, sshIsWindows, err := syncclient.GenDeviceID(oldDeviceID, deviceIDPrefix)
sshEntryRoot, sshAgeDir, sshIsWindows, err := syncclient.GenDeviceID(oldDeviceID, deviceIDPrefix)
if err != nil {
return errors.New("unable to generate device ID: " + err.Error())
}
// update config file
newCfg.Libmutton.SSHEntryRootPath = &sshEntryRoot
newCfg.Libmutton.SSHAgeDirPath = &sshAgeDir
newCfg.Libmutton.SSHIsWindows = &sshIsWindows
if err = config.Write(newCfg, true); err != nil {
return err