mirror of
https://github.com/YunoHost-Apps/navidrome_ynh.git
synced 2024-09-03 19:46:30 +02:00
Update install
This commit is contained in:
parent
1df21a457b
commit
76724f6ba6
1 changed files with 4 additions and 5 deletions
|
@ -19,6 +19,7 @@ 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,6 +32,7 @@ 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
|
||||||
|
@ -40,6 +42,8 @@ ynh_script_progression --message="Setting up source files..." --weight=4
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
|
mkdir -p "$config_path"
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:$app "$install_dir"
|
chown -R $app:$app "$install_dir"
|
||||||
|
|
||||||
|
@ -70,11 +74,6 @@ 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
|
||||||
|
|
||||||
config_path="/var/lib/$app"
|
|
||||||
ynh_app_setting_set --app=$app --key=config_path --value=$config_path
|
|
||||||
|
|
||||||
mkdir -p "$config_path"
|
|
||||||
|
|
||||||
# Main config File
|
# Main config File
|
||||||
ynh_add_config --template="navidrome.toml" --destination="$config_path/navidrome.toml"
|
ynh_add_config --template="navidrome.toml" --destination="$config_path/navidrome.toml"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue