mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Update rdtclient-install.sh
This commit is contained in:
		
							parent
							
								
									5e75bba028
								
							
						
					
					
						commit
						12952cb399
					
				| 
						 | 
					@ -27,20 +27,21 @@ rm packages-microsoft-prod.deb
 | 
				
			||||||
$STD apt-get update
 | 
					$STD apt-get update
 | 
				
			||||||
$STD apt-get install -y dotnet-sdk-6.0
 | 
					$STD apt-get install -y dotnet-sdk-6.0
 | 
				
			||||||
msg_ok "Installed ASP.NET Core Runtime"
 | 
					msg_ok "Installed ASP.NET Core Runtime"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing rdtclient"
 | 
					msg_info "Installing rdtclient"
 | 
				
			||||||
wget -q https://github.com/rogerfar/rdt-client/releases/latest/download/RealDebridClient.zip
 | 
					wget -q https://github.com/rogerfar/rdt-client/releases/latest/download/RealDebridClient.zip
 | 
				
			||||||
unzip -qq RealDebridClient.zip -d /opt/rdtc
 | 
					unzip -qq RealDebridClient.zip -d /opt/rdtc
 | 
				
			||||||
rm RealDebridClient.zip
 | 
					rm RealDebridClient.zip
 | 
				
			||||||
mkdir -p /data/db/ # defaults for rdtclient
 | 
					mkdir -p /data/db/
 | 
				
			||||||
mkdir -p /data/downloads # defaults for rdtclient
 | 
					mkdir -p /data/downloads
 | 
				
			||||||
msg_info "Installed rdtclient"
 | 
					msg_info "Installed rdtclient"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Creating Service"
 | 
					msg_info "Creating Service"
 | 
				
			||||||
cat <<EOF >/etc/systemd/system/rdtc.service
 | 
					cat <<EOF >/etc/systemd/system/rdtc.service
 | 
				
			||||||
[Unit]
 | 
					[Unit]
 | 
				
			||||||
Description=RdtClient Service
 | 
					Description=RdtClient Service
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Service]
 | 
					[Service]
 | 
				
			||||||
 | 
					 | 
				
			||||||
WorkingDirectory=/opt/rdtc
 | 
					WorkingDirectory=/opt/rdtc
 | 
				
			||||||
ExecStart=/usr/bin/dotnet RdtClient.Web.dll
 | 
					ExecStart=/usr/bin/dotnet RdtClient.Web.dll
 | 
				
			||||||
SyslogIdentifier=RdtClient
 | 
					SyslogIdentifier=RdtClient
 | 
				
			||||||
| 
						 | 
					@ -49,7 +50,6 @@ User=root
 | 
				
			||||||
[Install]
 | 
					[Install]
 | 
				
			||||||
WantedBy=multi-user.target
 | 
					WantedBy=multi-user.target
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
$STD systemctl daemon-reload
 | 
					 | 
				
			||||||
$STD systemctl enable -q --now rdtc
 | 
					$STD systemctl enable -q --now rdtc
 | 
				
			||||||
msg_ok "Created Service"
 | 
					msg_ok "Created Service"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue