Update umlautadaptarr-install.sh
This commit is contained in:
parent
71bfbde6e1
commit
1d5bba3a24
@ -14,13 +14,10 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get update
|
|
||||||
$STD apt-get install -y curl
|
|
||||||
$STD curl -fsSL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -o packages-microsoft-prod.deb
|
$STD curl -fsSL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -o packages-microsoft-prod.deb
|
||||||
$STD dpkg -i packages-microsoft-prod.deb
|
$STD dpkg -i packages-microsoft-prod.deb
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
unzip \
|
|
||||||
dotnet-sdk-8.0 \
|
dotnet-sdk-8.0 \
|
||||||
aspnetcore-runtime-8.0
|
aspnetcore-runtime-8.0
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
@ -30,7 +27,7 @@ temp_file=$(mktemp)
|
|||||||
trap 'rm -f "$temp_file"' EXIT
|
trap 'rm -f "$temp_file"' EXIT
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
|
RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
|
||||||
curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file
|
curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file
|
||||||
$STD unzip -j $temp_file '*/**' -d /opt/UmlautAdaptarr
|
unzip -qj $temp_file '*/**' -d /opt/UmlautAdaptarr
|
||||||
msg_ok "Installation completed"
|
msg_ok "Installation completed"
|
||||||
|
|
||||||
msg_info "Creating appsettings.json"
|
msg_info "Creating appsettings.json"
|
||||||
@ -112,7 +109,6 @@ Environment=ASPNETCORE_ENVIRONMENT=Production
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
$STD systemctl daemon-reload
|
|
||||||
systemctl -q --now enable umlautadaptarr
|
systemctl -q --now enable umlautadaptarr
|
||||||
msg_ok "Created systemd Service"
|
msg_ok "Created systemd Service"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user