diff --git a/scripts/install b/scripts/install index f11c405..ca899a5 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index ea6743d..bc225c0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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