Add dosh update command
This commit is contained in:
@@ -207,12 +207,15 @@ if [ "$role" = "client" ] || [ "$role" = "both" ]; then
|
||||
client_config="$config_dir/client.toml"
|
||||
if [ "$force_config" -eq 1 ] || [ ! -f "$client_config" ]; then
|
||||
default_server="${server:-user@example.com}"
|
||||
update_repo="${repo:-https://git.palav.dev/Palav/dosh.git}"
|
||||
if [ -n "$dosh_host" ]; then
|
||||
dosh_host_line="dosh_host = \"$dosh_host\""
|
||||
else
|
||||
dosh_host_line="# dosh_host = \"public.example.com\""
|
||||
fi
|
||||
cat >"$client_config" <<EOF
|
||||
update_repo = "$update_repo"
|
||||
update_port = $port
|
||||
server = "$default_server"
|
||||
$dosh_host_line
|
||||
ssh_auth_command = "~/.local/bin/dosh-auth"
|
||||
|
||||
Reference in New Issue
Block a user