mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-03 16:15:54 +00:00
fix(umlautadaptarr): use release appsettings.json instead of hardcoded copy (#11725)
The install script overwrote the correct appsettings.json shipped in the release archive with a hardcoded copy that was missing newer required fields (ApiKey, ProxyPort, EnableChangedTitleCache) and had structural differences (Lidarr/Readarr as arrays instead of objects), causing the service to fail on startup. - Remove hardcoded appsettings.json from install script (release archive already ships the correct version) - Backup and restore appsettings.json during updates to preserve user configuration Closes #11665
This commit is contained in:
committed by
GitHub
parent
f19bc7722b
commit
a330afde03
@@ -33,7 +33,9 @@ function update_script() {
|
|||||||
systemctl stop umlautadaptarr
|
systemctl stop umlautadaptarr
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
cp /opt/UmlautAdaptarr/appsettings.json /opt/UmlautAdaptarr/appsettings.json.bak
|
||||||
fetch_and_deploy_gh_release "UmlautAdaptarr" "PCJones/Umlautadaptarr" "prebuild" "latest" "/opt/UmlautAdaptarr" "linux-x64.zip"
|
fetch_and_deploy_gh_release "UmlautAdaptarr" "PCJones/Umlautadaptarr" "prebuild" "latest" "/opt/UmlautAdaptarr" "linux-x64.zip"
|
||||||
|
cp /opt/UmlautAdaptarr/appsettings.json.bak /opt/UmlautAdaptarr/appsettings.json
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start umlautadaptarr
|
systemctl start umlautadaptarr
|
||||||
|
|||||||
@@ -27,68 +27,6 @@ msg_ok "Installed Dependencies"
|
|||||||
|
|
||||||
fetch_and_deploy_gh_release "UmlautAdaptarr" "PCJones/Umlautadaptarr" "prebuild" "latest" "/opt/UmlautAdaptarr" "linux-x64.zip"
|
fetch_and_deploy_gh_release "UmlautAdaptarr" "PCJones/Umlautadaptarr" "prebuild" "latest" "/opt/UmlautAdaptarr" "linux-x64.zip"
|
||||||
|
|
||||||
msg_info "Setting up UmlautAdaptarr"
|
|
||||||
cat <<EOF >/opt/UmlautAdaptarr/appsettings.json
|
|
||||||
{
|
|
||||||
"Logging": {
|
|
||||||
"LogLevel": {
|
|
||||||
"Default": "Information",
|
|
||||||
"Microsoft.AspNetCore": "Warning"
|
|
||||||
},
|
|
||||||
"Console": {
|
|
||||||
"TimestampFormat": "yyyy-MM-dd HH:mm:ss::"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"AllowedHosts": "*",
|
|
||||||
"Kestrel": {
|
|
||||||
"Endpoints": {
|
|
||||||
"Http": {
|
|
||||||
"Url": "http://[::]:5005"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Settings": {
|
|
||||||
"UserAgent": "UmlautAdaptarr/1.0",
|
|
||||||
"UmlautAdaptarrApiHost": "https://umlautadaptarr.pcjones.de/api/v1",
|
|
||||||
"IndexerRequestsCacheDurationInMinutes": 12
|
|
||||||
},
|
|
||||||
"Sonarr": [
|
|
||||||
{
|
|
||||||
"Enabled": false,
|
|
||||||
"Name": "Sonarr",
|
|
||||||
"Host": "http://192.168.1.100:8989",
|
|
||||||
"ApiKey": "dein_sonarr_api_key"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"Radarr": [
|
|
||||||
{
|
|
||||||
"Enabled": false,
|
|
||||||
"Name": "Radarr",
|
|
||||||
"Host": "http://192.168.1.101:7878",
|
|
||||||
"ApiKey": "dein_radarr_api_key"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"Lidarr": [
|
|
||||||
{
|
|
||||||
"Enabled": false,
|
|
||||||
"Host": "http://192.168.1.102:8686",
|
|
||||||
"ApiKey": "dein_lidarr_api_key"
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"Readarr": [
|
|
||||||
{
|
|
||||||
"Enabled": false,
|
|
||||||
"Host": "http://192.168.1.103:8787",
|
|
||||||
"ApiKey": "dein_readarr_api_key"
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"IpLeakTest": {
|
|
||||||
"Enabled": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
msg_ok "Setup UmlautAdaptarr"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/umlautadaptarr.service
|
cat <<EOF >/etc/systemd/system/umlautadaptarr.service
|
||||||
[Unit]
|
[Unit]
|
||||||
|
|||||||
Reference in New Issue
Block a user