From ca116afabe882bcf5fcb265d8a8137c52e34343a Mon Sep 17 00:00:00 2001 From: siwinter <45730097+siwinter@users.noreply.github.com> Date: Tue, 24 Aug 2021 00:44:57 +0200 Subject: [PATCH] Update install --- scripts/install | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/scripts/install b/scripts/install index 23415df..67f9df1 100755 --- a/scripts/install +++ b/scripts/install @@ -112,8 +112,8 @@ chown -R $app: "$work_dir" ynh_script_progression --message="Configuring a systemd service..." # Create a dedicated systemd config -#start_file="$final_path/env/bin/$app" -ynh_add_systemd_config #--others_var="conf_file start_file" substitute __CONF_FILE__ by $conf_file + +ynh_add_systemd_config #================================================= # MODIFY A CONFIG FILE @@ -125,13 +125,6 @@ data_dir=$work_dir/data ynh_add_config --template="../conf/app.conf" --destination="$conf_file" -#cp ../conf/app.conf "$conf_file" - -#ynh_replace_string --match_string="__PORT__" --replace_string=$port --target_file="$conf_file" -#ynh_replace_string --match_string="__MEDIADIR__" --replace_string=$media_dir --target_file="$conf_file" -#ynh_replace_string --match_string="__CACHE_DIR__" --replace_string=$work_dir/cache --target_file="$conf_file" -#ynh_replace_string --match_string="__DATA_DIR__" --replace_string=$work_dir/data --target_file="$conf_file" - #================================================= # STORE THE CONFIG FILE CHECKSUM #================================================= @@ -147,10 +140,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -# user mopidy needs permission to mkdir on final_path -#chown -R root: $final_path -#chown $app: $final_path - #================================================= # INTEGRATE SERVICE IN YUNOHOST #================================================= @@ -178,10 +167,6 @@ fi ynh_permission_url --permission="main" --url="$domain/mopidy" --add_url="$domain/mopidy/ws" "$domain/musicbox_webclient" "$domain/local" -#ynh_permission_url --permission="main" --add_url="$domain/mopidy/ws" -#ynh_permission_url --permission="main" --add_url="$domain/musicbox_webclient" -#ynh_permission_url --permission="main" --add_url="$domain/local" - #================================================= # RELOAD NGINX #================================================= @@ -196,11 +181,6 @@ ynh_script_progression --message="Provide additional shell command..." ynh_add_config --template="../sources/extra_files/mopidyctl" --destination="$cmd_file" -#cp -a ../sources/extra_files/mopidyctl "$cmd_file" -#ynh_replace_string --match_string="__APP__" --replace_string=$app --target_file="$cmd_file" -#ynh_replace_string --match_string="__FINAL_PATH__" --replace_string=$final_path --target_file="$cmd_file" -#ynh_replace_string --match_string="__CONF_FILE__" --replace_string=$conf_file --target_file="$cmd_file" - chmod +x "$cmd_file" #=================================================