From fa4f326958a37f775194a6ce8b3af6ba117a4230 Mon Sep 17 00:00:00 2001 From: anmol Date: Fri, 16 Oct 2020 07:16:01 +0530 Subject: [PATCH] Put the copying stuff on top the database --- scripts/install | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 7711ee0..6035665 100755 --- a/scripts/install +++ b/scripts/install @@ -133,6 +133,14 @@ mkdir -p "${final_path}/store" mkdir -p "${final_path}/cache/smarty3" chmod -R 777 $final_path/store $final_path/cache +# Copy the template install/htconfig.sample.php to .htconfig.php +ynh_script_progression --message="Moving .htconfig.php to root of Zap ..." +cp $final_path/install/htconfig.sample.php $config +config="$final_path/.htconfig.php" +# Create php.log inside for logs +ynh_print_info "Create php.log for the debuging..." +sudo touch "$final_path/php.log" + #================================================= # CREATE A DATABASE #================================================= @@ -171,14 +179,7 @@ else fi -# Copy the template install/htconfig.sample.php to .htconfig.php -ynh_script_progression --message="Moving .htconfig.php to root of Zap ..." -config="$final_path/.htconfig.php" -cp $final_path/install/htconfig.sample.php $config -# Create php.log inside for logs -ynh_print_info "Create php.log for the debuging..." -sudo touch "$final_path/php.log" #================================================= # MODIFY A CONFIG FILE