Skarafaz / mercury

Simple Android app that sends pre-configured commands to remote servers via SSH.
GNU General Public License v2.0
115 stars 20 forks source link

sudoNoPasswd is no known property #31

Closed DerBeutlin closed 4 years ago

DerBeutlin commented 4 years ago

Maybe I'm stupid and maybe I have a typo I'm not seeing but it does seem to me as if sudoNoPasswd cannot be used in the config.

{
    "name" : "Pi",
    "host" : "192.168.178.40",
    "port" : 22,
    "user" : "pi",
    "sudoNoPasswd" : true,
    "commands" : [ {
        "name" : "Restart Spotify",
        "sudo" : true,
        "cmd" : "systemctl restart raspotify"
    } ]
}

This leads to the error

Unrecognied field "sudoNoPasswd" (class it.skarafaz.mercury.model.Server), not marked as ignorable (8 known properties: "port", "sudoPath","nohupPath", "commands", "hosts", "name", "user","password"]) ...
Skarafaz commented 4 years ago

Hi! Did you installed the app from play store or from fdroid? Can you please check the app version?

DerBeutlin commented 4 years ago

Yeah from F-Droid. Version 1.2.1. I guess this is the problem sorry

Skarafaz commented 4 years ago

No problem :)