fix: use built-in systemd installer

This commit is contained in:
Kyle Kroboth 2025-03-09 00:51:20 -05:00
parent 5d189e5d60
commit dfe9980f09
2 changed files with 2 additions and 17 deletions

View File

@ -46,7 +46,6 @@ function update_script() {
temp_file=$(mktemp)
wget -q https://fileflows.com/downloads/zip -O $temp_file
unzip -oq -d /opt/fileflows $temp_file
chmod +x /opt/fileflows/fileflows-systemd-entrypoint.sh
msg_ok "Updated $APP to latest version"
# Starting Services

View File

@ -60,26 +60,12 @@ msg_info "Setup ${APPLICATION}"
temp_file=$(mktemp)
wget -q https://fileflows.com/downloads/zip -O $temp_file
unzip -q -d /opt/fileflows $temp_file
chmod +x /opt/fileflows/fileflows-systemd-entrypoint.sh
(cd /opt/fileflows/Server && dotnet FileFlows.Server.dll --systemd install --root true)
msg_ok "Setup ${APPLICATION}"
# Creating Service
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/fileflows.service
[Unit]
Description=${APPLICATION} Service
After=network.target
[Service]
WorkingDirectory=/opt/fileflows
ExecStart=/opt/fileflows/fileflows-systemd-entrypoint.sh
SyslogIdentifier=FileFlows
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
EOF
(cd /opt/fileflows/Server && dotnet FileFlows.Server.dll --systemd install --root true)
systemctl enable -q --now fileflows.service
msg_ok "Created Service"