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:
parent
67a6714075
commit
84c52dad81
2 changed files with 5 additions and 5 deletions
|
@ -57,7 +57,7 @@ fi
|
||||||
ynh_script_progression --message="Creating Drush alias..." --weight=1
|
ynh_script_progression --message="Creating Drush alias..." --weight=1
|
||||||
|
|
||||||
mkdir -p "$install_dir/drush/sites/"
|
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
|
# 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
|
ynh_script_progression --message="Installing Composer..." --weight=3
|
||||||
|
|
||||||
mkdir -p "$install_dir/.composer"
|
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"
|
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_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
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
|
|
|
@ -59,7 +59,7 @@ fi
|
||||||
ynh_script_progression --message="Upgrading Composer..." --weight=3
|
ynh_script_progression --message="Upgrading Composer..." --weight=3
|
||||||
|
|
||||||
mkdir -p "$install_dir/.composer"
|
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"
|
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_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
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue