From e4b4426a30f6974ae07b8e66078e653d1ecb615e Mon Sep 17 00:00:00 2001 From: mrflos Date: Wed, 1 Feb 2023 16:48:41 +0300 Subject: [PATCH] fix(install) : dump curl + fix mv --- utils.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils.inc.php b/utils.inc.php index 26e3ec5..6a3a536 100644 --- a/utils.inc.php +++ b/utils.inc.php @@ -229,9 +229,14 @@ function copyYesWikiFiles($domain, $user, $dbUser) } exec($sudo.'curl -o '.$tmpFile.' '.$_SERVER['source_archive_url']); exec($sudo.'unzip '.$tmpFile.' "doryphore/*" -d '.$destDir); - exec($sudo.'mv '.$destDir.'/doryphore/* -d '.$destDir.'/'); + exec($sudo.'mv '.$destDir.'/doryphore/* '.$destDir.'/'); exec($sudo.'rm -rf '.$destDir.'/doryphore'); unlink($tmpFile); +echo 'curl -X POST "https://'.$domain.'/?PagePrincipale&installAction=install" -F "config[default_language]=fr" -F "config[wakka_name]='.$domain.'" \ +-F "config[root_page]=PagePrincipale" -F "config[mysql_host]=localhost" \ +-F "config[mysql_database]='.$dbUser['database'].'" -F "config[mysql_user]='.$dbUser['user'].' -F "config[mysql_password]='.$dbUser['password'].'" -F "config[table_prefix]=yeswiki_" \ +-F "admin_name='.$_SERVER['admin_id'].'" -F "admin_password='.$_SERVER['admin_password'].'" -F "admin_password_conf='.$_SERVER['admin_password'].'" \ +-F "admin_email='.$_SERVER['admin_email'].'" -F "config[rewrite_mode]=1" -F "submit=Continue"'; exec($sudo.'curl -X POST "https://'.$domain.'/?PagePrincipale&installAction=install" -F "config[default_language]=fr" -F "config[wakka_name]='.$domain.'" \ -F "config[root_page]=PagePrincipale" -F "config[mysql_host]=localhost" \