mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-27 10:27:08 -04:00
RustDesk Server: write the creds file with heredocs
Matches how the other install scripts write their creds; the file is unchanged.
This commit is contained in:
@@ -42,17 +42,19 @@ write_creds() {
|
|||||||
msg_error "hbbs did not create ${key_file}"
|
msg_error "hbbs did not create ${key_file}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
{
|
cat <<EOF >~/rustdesk.creds
|
||||||
echo "RustDesk Server"
|
RustDesk Server
|
||||||
echo "ID Server: ${LOCAL_IP}"
|
ID Server: ${LOCAL_IP}
|
||||||
echo "Key: $(<"$key_file")"
|
Key: $(<"$key_file")
|
||||||
if ((INSTALL_API)); then
|
EOF
|
||||||
echo ""
|
if ((INSTALL_API)); then
|
||||||
echo "RustDesk API Web UI: http://${LOCAL_IP}:21114/_admin/"
|
cat <<EOF >>~/rustdesk.creds
|
||||||
echo "Username: admin"
|
|
||||||
echo "Password: ${API_PASS}"
|
RustDesk API Web UI: http://${LOCAL_IP}:21114/_admin/
|
||||||
fi
|
Username: admin
|
||||||
} >~/rustdesk.creds
|
Password: ${API_PASS}
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_deb_based() {
|
setup_deb_based() {
|
||||||
|
|||||||
Reference in New Issue
Block a user