mirror of
https://github.com/YunoHost-Apps/sonarr_ynh.git
synced 2024-09-03 20:26:19 +02:00
Make sure the internal auth system is disabled (#9)
This commit is contained in:
parent
460a2fc1b0
commit
14f5b503be
3 changed files with 23 additions and 1 deletions
|
@ -6,7 +6,13 @@
|
|||
<UrlBase>__PATH__</UrlBase>
|
||||
<BindAddress>127.0.0.1</BindAddress>
|
||||
<ApiKey>__API_KEY__</ApiKey>
|
||||
<AuthenticationMethod>None</AuthenticationMethod>
|
||||
<AuthenticationMethod>External</AuthenticationMethod>
|
||||
<UpdateMechanism>BuiltIn</UpdateMechanism>
|
||||
<Branch>main</Branch>
|
||||
<LaunchBrowser>False</LaunchBrowser>
|
||||
<AnalyticsEnabled>False</AnalyticsEnabled>
|
||||
<InstanceName>Sonarr</InstanceName>
|
||||
<AuthenticationRequired>DisabledForLocalAddresses</AuthenticationRequired>
|
||||
<SslCertPath></SslCertPath>
|
||||
<SslCertPassword></SslCertPassword>
|
||||
</Config>
|
||||
|
|
5
doc/POST_UPGRADE.d/4.0.1.929~ynh1.md
Normal file
5
doc/POST_UPGRADE.d/4.0.1.929~ynh1.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
The app's `__DATA_DIR__/config.xml` will now be overidden upon every upgrade. This is to make sure the internal authentication system is disabled, since you can benefit from YunoHost's permission system.
|
||||
|
||||
In most use cases it should be fine. If you do need to alter the file, refer to the hooks system.
|
||||
|
||||
If you altered the file, a backup has been made in `__DATA_DIR__`.
|
|
@ -55,6 +55,17 @@ yunohost service add "$app" --description="Sonarr daemon" --log="/var/log/$app/s
|
|||
# Use logrotate to manage app-specific logfile(s)
|
||||
ynh_use_logrotate --non-append --logfile="/var/log/$app/"
|
||||
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring Radarr..." --weight=2
|
||||
|
||||
ynh_add_config --template="config.xml" --destination="$data_dir/config.xml"
|
||||
|
||||
chmod 750 "$data_dir"
|
||||
chmod -R o-rwx "$data_dir"
|
||||
chown -R "$app:$app" "$data_dir"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue