diff --git a/README.md b/README.md index 7f5a9f0..24abb33 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ It shall NOT be edited by hand. Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available. -**Shipped version:** 4.0.1.929~ynh1 +**Shipped version:** 4.0.3.1413~ynh2 ## Screenshots diff --git a/README_eu.md b/README_eu.md index 251c518..9f9a528 100644 --- a/README_eu.md +++ b/README_eu.md @@ -19,7 +19,7 @@ EZ editatu eskuz. Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available. -**Paketatutako bertsioa:** 4.0.1.929~ynh1 +**Paketatutako bertsioa:** 4.0.3.1413~ynh2 ## Pantaila-argazkiak diff --git a/README_fr.md b/README_fr.md index ab4b742..e250dcd 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main. Sonarr est un PVR pour les utilisateurs Usenet et BitTorrent. Il peut surveiller plusieurs flux RSS pour les nouveaux épisodes de vos émissions préférées et les récupérer, les trier et les renommer. Il peut également être configuré pour mettre à niveau automatiquement la qualité des fichiers déjà téléchargés lorsqu'un format de meilleure qualité devient disponible. -**Version incluse :** 4.0.1.929~ynh1 +**Version incluse :** 4.0.3.1413~ynh2 ## Captures d’écran diff --git a/README_gl.md b/README_gl.md index 2e3b307..ca8ba82 100644 --- a/README_gl.md +++ b/README_gl.md @@ -19,7 +19,7 @@ NON debe editarse manualmente. Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available. -**Versión proporcionada:** 4.0.1.929~ynh1 +**Versión proporcionada:** 4.0.3.1413~ynh2 ## Capturas de pantalla diff --git a/manifest.toml b/manifest.toml index a222bd4..2e7676c 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Sonarr" description.en = "Series collection manager for Usenet and BitTorrent users" description.fr = "Gestionnaire de collection de séries pour utilisateurs de Usenet et BitTorrent" -version = "4.0.1.929~ynh1" +version = "4.0.3.1413~ynh2" maintainers = ["tituspijean"] @@ -40,12 +40,12 @@ ram.runtime = "50M" [resources] [resources.sources.main] - amd64.url = "https://github.com/Sonarr/Sonarr/releases/download/v4.0.1.929/Sonarr.main.4.0.1.929.linux-x64.tar.gz" - amd64.sha256 = "f58361ca1c679e7d827ac5cb247e42b3bc81f70db76140193eb93dbc41ef7af9" - arm64.url = "https://github.com/Sonarr/Sonarr/releases/download/v4.0.1.929/Sonarr.main.4.0.1.929.linux-arm64.tar.gz" - arm64.sha256 = "4410b27e8ce60695ab9ac7cc71d6f506a7015e3eb808c0eb8293194f38fce594" - armhf.url = "https://github.com/Sonarr/Sonarr/releases/download/v4.0.1.929/Sonarr.main.4.0.1.929.linux-arm.tar.gz" - armhf.sha256 = "8cea527a1d3414c9ee0ddcde76b3fd009c4d087b3a82d701f32e50797019cb93" + amd64.url = "https://github.com/Sonarr/Sonarr/releases/download/v4.0.3.1413/Sonarr.main.4.0.3.1413.linux-x64.tar.gz" + amd64.sha256 = "c4668f3443d2a54afdb2fe034caf280c7ce62f2b69dd3a7e729e394354ca62b7" + arm64.url = "https://github.com/Sonarr/Sonarr/releases/download/v4.0.3.1413/Sonarr.main.4.0.3.1413.linux-arm64.tar.gz" + arm64.sha256 = "61e1d7232a1c46068798aac4f4af44dfec59c92d8c0e7b3199220907b74040b5" + armhf.url = "https://github.com/Sonarr/Sonarr/releases/download/v4.0.3.1413/Sonarr.main.4.0.3.1413.linux-arm.tar.gz" + armhf.sha256 = "0f79f2d0456239f2f77724a5d7f8464f2103f1b5b4886de814f6cc901fa89384" autoupdate.strategy = "latest_github_release" autoupdate.asset.amd64 = ".*\\.linux-x64.tar.gz" diff --git a/scripts/change_url b/scripts/change_url index 0b00c85..8fcddde 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -32,7 +32,9 @@ ynh_change_url_nginx_config #================================================= # Add newline at end of file if required -sed -i -e '$a\' "$data_dir/config.xml" +if [ -e "$data_dir/config.xml" ]; then + sed -i -e '$a\' "$data_dir/config.xml" +fi ynh_add_config --template="config.xml" --destination="$data_dir/config.xml" diff --git a/scripts/upgrade b/scripts/upgrade index 7ae6a1c..6c97389 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -61,7 +61,9 @@ ynh_use_logrotate --non-append --logfile="/var/log/$app/" ynh_script_progression --message="Configuring Radarr..." --weight=2 # Add newline at end of file if required -sed -i -e '$a\' "$data_dir/config.xml" +if [ -e "$data_dir/config.xml" ]; then + sed -i -e '$a\' "$data_dir/config.xml" +fi ynh_add_config --template="config.xml" --destination="$data_dir/config.xml"