mirror of
https://github.com/YunoHost-Apps/navidrome_ynh.git
synced 2024-09-03 19:46:30 +02:00
fix
This commit is contained in:
parent
5374581174
commit
e12db564c2
3 changed files with 8 additions and 12 deletions
|
@ -8,7 +8,7 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__CONFIG_PATH__/
|
WorkingDirectory=__CONFIG_PATH__/
|
||||||
ExecStart=__INSTALL_DIR__/__APP__ --configfile "__CONFIG_PATH__/navidrome.toml"
|
ExecStart=__INSTALL_DIR__/__APP__ --configfile "/var/lib/__APP__/navidrome.toml"
|
||||||
TimeoutStopSec=20
|
TimeoutStopSec=20
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
|
@ -19,7 +19,6 @@ enable_animation="true"
|
||||||
enable_transcoding="false"
|
enable_transcoding="false"
|
||||||
welcome_message=""
|
welcome_message=""
|
||||||
enable_sharing="false"
|
enable_sharing="false"
|
||||||
config_path="/var/lib/$app"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE SETTINGS FROM MANIFEST
|
# STORE SETTINGS FROM MANIFEST
|
||||||
|
@ -31,7 +30,6 @@ ynh_app_setting_set --app=$app --key=enable_animation --value=$enable_animation
|
||||||
ynh_app_setting_set --app=$app --key=enable_transcoding --value=$enable_transcoding
|
ynh_app_setting_set --app=$app --key=enable_transcoding --value=$enable_transcoding
|
||||||
ynh_app_setting_set --app=$app --key=welcome_message --value=$welcome_message
|
ynh_app_setting_set --app=$app --key=welcome_message --value=$welcome_message
|
||||||
ynh_app_setting_set --app=$app --key=enable_sharing --value=$enable_sharing
|
ynh_app_setting_set --app=$app --key=enable_sharing --value=$enable_sharing
|
||||||
ynh_app_setting_set --app=$app --key=config_path --value=$config_path
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
@ -71,13 +69,13 @@ ynh_multimedia_build_main_dir
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
mkdir -p "$config_path"
|
mkdir -p "/var/lib/$app"
|
||||||
|
|
||||||
# Main config File
|
# Main config File
|
||||||
ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml"
|
ynh_add_config --template="../conf/navidrome.toml" --destination="/var/lib/$app/navidrome.toml"
|
||||||
|
|
||||||
chmod 600 "$config_path/navidrome.toml"
|
chmod 600 "/var/lib/$app/navidrome.toml"
|
||||||
chown -R $app:$app "$config_path"
|
chown -R $app:$app "$/var/lib/$app/navidrome.toml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -100,13 +100,11 @@ yunohost service add $app --description="Web-based music collection server and s
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating a configuration file..."
|
ynh_script_progression --message="Updating a configuration file..."
|
||||||
|
|
||||||
config_path="/var/lib/$app"
|
|
||||||
|
|
||||||
# Uncomment when there is new options added upstream
|
# Uncomment when there is new options added upstream
|
||||||
ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml"
|
ynh_add_config --template="../conf/navidrome.toml" --destination="/var/lib/$app/navidrome.toml"
|
||||||
|
|
||||||
chmod 600 "$config_path/navidrome.toml"
|
chmod 600 "/var/lib/$app/navidrome.toml"
|
||||||
chown -R $app:$app "$config_path"
|
chown -R $app:$app "/var/lib/$app/navidrome.toml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
Loading…
Add table
Reference in a new issue