1
0
Fork 0
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:
siwinter 2021-08-24 00:35:34 +02:00 committed by GitHub
parent 621c825b21
commit 739bb72044
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,10 +194,12 @@ ynh_systemd_action --service_name=nginx --action=reload
#================================================= #=================================================
ynh_script_progression --message="Provide additional shell command..." ynh_script_progression --message="Provide additional shell command..."
cp -a ../sources/extra_files/mopidyctl "$cmd_file" ynh_add_config --template="../sources/extra_files/mopidyctl" --destination="$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" #cp -a ../sources/extra_files/mopidyctl "$cmd_file"
ynh_replace_string --match_string="__CONF_FILE__" --replace_string=$conf_file --target_file="$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" chmod +x "$cmd_file"