1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/drupal_ynh.git synced 2024-09-03 18:35:53 +02:00

Do not use relative ../ path for config file templates

This commit is contained in:
Salamandar 2024-01-12 11:09:59 +01:00
parent 67a6714075
commit 84c52dad81
2 changed files with 5 additions and 5 deletions

View file

@ -57,7 +57,7 @@ fi
ynh_script_progression --message="Creating Drush alias..." --weight=1
mkdir -p "$install_dir/drush/sites/"
ynh_add_config --template="../conf/example.site.yml" --destination="$install_dir/drush/sites/$app.site.yml"
ynh_add_config --template="example.site.yml" --destination="$install_dir/drush/sites/$app.site.yml"
#=================================================
# INSTALL COMPOSER
@ -65,7 +65,7 @@ ynh_add_config --template="../conf/example.site.yml" --destination="$install_dir
ynh_script_progression --message="Installing Composer..." --weight=3
mkdir -p "$install_dir/.composer"
ynh_add_config --template="../conf/composer.json" --destination="$install_dir/composer.json"
ynh_add_config --template="composer.json" --destination="$install_dir/composer.json"
ynh_install_composer --phpversion="$phpversion" --workdir="$install_dir"
@ -96,7 +96,7 @@ popd
#=================================================
ynh_script_progression --message="Setting up the cron file..." --weight=1
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
ynh_add_config --template="cron" --destination="/etc/cron.d/$app"
#=================================================
# STORE THE CONFIG FILE CHECKSUM

View file

@ -59,7 +59,7 @@ fi
ynh_script_progression --message="Upgrading Composer..." --weight=3
mkdir -p "$install_dir/.composer"
ynh_add_config --template="../conf/composer.json" --destination="$install_dir/composer.json"
ynh_add_config --template="composer.json" --destination="$install_dir/composer.json"
ynh_exec_warn_less ynh_composer_exec --phpversion="$phpversion" --workdir="$install_dir" --commands="update"
@ -100,7 +100,7 @@ chown $app:$app "$install_dir/$app/sites/default/settings.php"
#=================================================
ynh_script_progression --message="Setting up the cron file" --weight=1
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
ynh_add_config --template="cron" --destination="/etc/cron.d/$app"
#=================================================
# END OF SCRIPT