mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-05 09:03:53 -04:00
@@ -33,7 +33,7 @@ function update_script() {
|
|||||||
update_available=$(curl -fsSL -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable)
|
update_available=$(curl -fsSL -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable)
|
||||||
if [[ "${update_available}" == "true" ]]; then
|
if [[ "${update_available}" == "true" ]]; then
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop fileflows
|
systemctl stop fileflows*
|
||||||
msg_info "Stopped Service"
|
msg_info "Stopped Service"
|
||||||
|
|
||||||
msg_info "Creating Backup"
|
msg_info "Creating Backup"
|
||||||
@@ -45,7 +45,7 @@ function update_script() {
|
|||||||
fetch_and_deploy_from_url "https://fileflows.com/downloads/zip" "/opt/fileflows"
|
fetch_and_deploy_from_url "https://fileflows.com/downloads/zip" "/opt/fileflows"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start fileflows
|
systemctl start fileflows*
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -33,13 +33,25 @@ msg_ok "Installed ASP.NET Core Runtime"
|
|||||||
|
|
||||||
fetch_and_deploy_from_url "https://fileflows.com/downloads/zip" "/opt/fileflows"
|
fetch_and_deploy_from_url "https://fileflows.com/downloads/zip" "/opt/fileflows"
|
||||||
|
|
||||||
msg_info "Setup FileFlows"
|
|
||||||
$STD ln -svf /usr/bin/ffmpeg /usr/local/bin/ffmpeg
|
$STD ln -svf /usr/bin/ffmpeg /usr/local/bin/ffmpeg
|
||||||
$STD ln -svf /usr/bin/ffprobe /usr/local/bin/ffprobe
|
$STD ln -svf /usr/bin/ffprobe /usr/local/bin/ffprobe
|
||||||
cd /opt/fileflows/Server
|
|
||||||
dotnet FileFlows.Server.dll --systemd install --root true
|
read -r -p "${TAB3}Do you want to install FileFlows Server or Node? (S/N): " install_server
|
||||||
systemctl enable -q --now fileflows
|
|
||||||
msg_ok "Setup FileFlows"
|
if [[ "$install_server" =~ ^[Ss]$ ]]; then
|
||||||
|
msg_info "Installing FileFlows Server"
|
||||||
|
cd /opt/fileflows/Server
|
||||||
|
$STD dotnet FileFlows.Server.dll --systemd install --root true
|
||||||
|
systemctl enable -q --now fileflows
|
||||||
|
msg_ok "Installed FileFlows Server"
|
||||||
|
else
|
||||||
|
msg_info "Installing FileFlows Node"
|
||||||
|
cd /opt/fileflows/Node
|
||||||
|
$STD dotnet FileFlows.Node.dll
|
||||||
|
$STD dotnet FileFlows.Node.dll --systemd install --root true
|
||||||
|
systemctl enable -q --now fileflows-node
|
||||||
|
msg_ok "Installed FileFlows Node"
|
||||||
|
fi
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|||||||
Reference in New Issue
Block a user