Merge pull request #1463 from YunoHost/ynh_add_config_template

ynh_add_config template
This commit is contained in:
Alexandre Aubin 2022-05-16 15:50:23 +02:00 committed by GitHub
commit d600cdf366
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -311,8 +311,7 @@ ynh_local_curl() {
# | arg: -d, --destination= - Destination of the config file
#
# examples:
# ynh_add_config --template=".env" --destination="$final_path/.env"
# ynh_add_config --template="../conf/.env" --destination="$final_path/.env"
# ynh_add_config --template=".env" --destination="$final_path/.env" use the template file "../conf/.env"
# ynh_add_config --template="/etc/nginx/sites-available/default" --destination="etc/nginx/sites-available/mydomain.conf"
#
# The template can be by default the name of a file in the conf directory