mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
improve provision of extra comand
This commit is contained in:
parent
621c825b21
commit
739bb72044
1 changed files with 6 additions and 4 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue