mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Update install script.
This commit is contained in:
parent
b1d6b8ebde
commit
fabfea9ecb
@ -52,21 +52,21 @@ unzip ./Remotely-Linux.zip
|
||||
chmod +x ./Remotely_Agent
|
||||
chmod +x ./ScreenCast/Remotely_ScreenCast.Linux
|
||||
|
||||
cat > ./ConnectionInfo.json << EOL
|
||||
{
|
||||
"DeviceID":"$GUID",
|
||||
"Host":"$HostName",
|
||||
"OrganizationID": "$Organization",
|
||||
"ServerVerificationToken":""
|
||||
}
|
||||
EOL
|
||||
|
||||
connectionInfo="{
|
||||
\"DeviceID\":\"$GUID\",
|
||||
\"Host\":\"$HostName\",
|
||||
\"OrganizationID\": \"$Organization\",
|
||||
\"ServerVerificationToken\":\"\"
|
||||
}"
|
||||
|
||||
echo "$connectionInfo" > ./ConnectionInfo.json
|
||||
|
||||
curl --head $HostName/Downloads/Remotely-Linux.zip | grep etag | cut -d' ' -f 2 > etag.txt
|
||||
|
||||
echo Creating service...
|
||||
|
||||
cat > /etc/systemd/system/remotely-agent.service << EOL
|
||||
[Unit]
|
||||
serviceConfig="[Unit]
|
||||
Description=The Remotely agent used for remote access.
|
||||
|
||||
[Service]
|
||||
@ -74,11 +74,12 @@ WorkingDirectory=/usr/local/bin/Remotely/
|
||||
ExecStart=/usr/local/bin/Remotely/Remotely_Agent
|
||||
Restart=always
|
||||
StartLimitIntervalSec=0
|
||||
RestartSec=10"
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
EOL
|
||||
WantedBy=graphical.target"
|
||||
|
||||
echo "$serviceConfig" > /etc/systemd/system/remotely-agent.service
|
||||
|
||||
systemctl enable remotely-agent
|
||||
systemctl restart remotely-agent
|
||||
|
||||
Loading…
Reference in New Issue
Block a user