[skip-ci] Update README and gopass versions

A few clarifications in the readme.
Also updated versions of gopassJsonAPI and gopassBridge.
Clarified variable name.
merge-requests/2/head
erik 2 years ago
parent 17a814a11a
commit 83f86db0d1

@ -49,7 +49,9 @@ After having installed `provs-desktop.jar` (see prerequisites) execute:
**target** can be: **target** can be:
* `local` * `local`
* `user123:mypassword@myhost.com` - general format is: <user[:password]@host> - * remote, e.g. `user123:mypassword@myhost.com` - general format is: <user[:password]@host> -
* be sure to have openssh-server installed
* add your preferred public key to known_hosts on the target machine
* if password is omitted, then ssh-keys will be used for authentication * if password is omitted, then ssh-keys will be used for authentication
* if password is omitted but option `-p` is provided, then the password will be prompted interactively * if password is omitted but option `-p` is provided, then the password will be prompted interactively
@ -75,7 +77,8 @@ provs-server.jar k3s local
provs-server.jar k3s myuser@myhost.com # using ssh-authentication - alternatively use option -p for password authentication provs-server.jar k3s myuser@myhost.com # using ssh-authentication - alternatively use option -p for password authentication
``` ```
For the remote server please configure a config file (default file name: server-config.yaml) For the remote server please configure a config file (default file name: server-config.yaml).
It has to be in the same folder where you execute the provs-server.jar command.
```yaml ```yaml
fqdn: "myhostname.com" fqdn: "myhostname.com"
node: node:

@ -11,7 +11,7 @@ import org.domaindrivenarchitecture.provs.framework.ubuntu.web.base.downloadFrom
fun Prov.downloadGopassBridge() = task { fun Prov.downloadGopassBridge() = task {
val version = "0.8.0" val version = "0.9.0"
val filename = "gopass_bridge-${version}-fx.xpi" val filename = "gopass_bridge-${version}-fx.xpi"
val downloadDir = "${userHome()}Downloads/" val downloadDir = "${userHome()}Downloads/"
@ -25,10 +25,10 @@ fun Prov.downloadGopassBridge() = task {
fun Prov.installGopassBridgeJsonApi() = task { fun Prov.installGopassBridgeJsonApi() = task {
// see https://github.com/gopasspw/gopass-jsonapi // see https://github.com/gopasspw/gopass-jsonapi
val gopassBridgeVersion = "1.11.1" val gopassJsonApiVersion = "1.14.3"
val requiredGopassVersion = "1.12" val requiredGopassVersion = "1.14.4"
val filename = "gopass-jsonapi_${gopassBridgeVersion}_linux_amd64.deb" val filename = "gopass-jsonapi_${gopassJsonApiVersion}_linux_amd64.deb"
val downloadUrl = "-L https://github.com/gopasspw/gopass-jsonapi/releases/download/v$gopassBridgeVersion/$filename" val downloadUrl = "-L https://github.com/gopasspw/gopass-jsonapi/releases/download/v$gopassJsonApiVersion/$filename"
val downloadDir = "${userHome()}Downloads" val downloadDir = "${userHome()}Downloads"
val installedJsonApiVersion = gopassJsonApiVersion()?.trim() val installedJsonApiVersion = gopassJsonApiVersion()?.trim()
@ -55,13 +55,13 @@ fun Prov.installGopassBridgeJsonApi() = task {
) )
} }
} else { } else {
if (installedJsonApiVersion.startsWith("gopass-jsonapi version " + gopassBridgeVersion)) { if (installedJsonApiVersion.startsWith("gopass-jsonapi version " + gopassJsonApiVersion)) {
addResultToEval(ProvResult(true, out = "Version $gopassBridgeVersion of gopass-jsonapi is already installed")) addResultToEval(ProvResult(true, out = "Version $gopassJsonApiVersion of gopass-jsonapi is already installed"))
} else { } else {
addResultToEval( addResultToEval(
ProvResult( ProvResult(
false, false,
err = "gopass-jsonapi (version $gopassBridgeVersion) cannot be installed as version $installedJsonApiVersion is already installed." + err = "gopass-jsonapi (version $gopassJsonApiVersion) cannot be installed as version $installedJsonApiVersion is already installed." +
" Upgrading gopass-jsonapi is currently not supported by provs." " Upgrading gopass-jsonapi is currently not supported by provs."
) )
) )

Loading…
Cancel
Save