mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remmina set password already encrypts it.
This commit is contained in:
parent
9550220e01
commit
d3af6f477c
@ -28,13 +28,8 @@ echo "Parsed url in 'REMMINA_URL': proto:$proto username:$user host:$host"
|
||||
[[ "$proto" != "vnc" && "$proto" != "rdp" && "$proto" != "spice" ]] && err "Unsupported protocol $proto in connection url 'REMMINA_URL'"
|
||||
|
||||
profile="$profile_dir"/"$proto".remmina
|
||||
if [[ -n "$pw" ]]; then
|
||||
encpw=$(echo "$pw" | remmina --encrypt-password | grep Encrypted | sed 's/Encrypted password: //')
|
||||
remmina --set-option password="$encpw" --update-profile "$profile"
|
||||
else
|
||||
remmina --set-option password= --update-profile "$profile"
|
||||
fi
|
||||
remmina --set-option username="$user" --update-profile "$profile"
|
||||
remmina --set-option password="$pw" --update-profile "$profile"
|
||||
remmina --set-option server="$host" --update-profile "$profile"
|
||||
|
||||
# remmina --set-option window_maximize=1 --update-profile "$profile"
|
||||
|
Loading…
Reference in New Issue
Block a user