From 739bb720442e1a651b4d6f6abbe0e523ee08ad96 Mon Sep 17 00:00:00 2001 From: siwinter <45730097+siwinter@users.noreply.github.com> Date: Tue, 24 Aug 2021 00:35:34 +0200 Subject: [PATCH] improve provision of extra comand --- scripts/install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 5c1b261..23415df 100755 --- a/scripts/install +++ b/scripts/install @@ -194,10 +194,12 @@ ynh_systemd_action --service_name=nginx --action=reload #================================================= ynh_script_progression --message="Provide additional shell command..." -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" +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"