From ed6aa7154d8d75d2f436a17e380f72fc45db7c37 Mon Sep 17 00:00:00 2001 From: mrflos Date: Wed, 1 Feb 2023 17:50:57 +0300 Subject: [PATCH] fix(install) : back with -X POST curl --- utils.inc.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/utils.inc.php b/utils.inc.php index cbf0e86..81cb32d 100644 --- a/utils.inc.php +++ b/utils.inc.php @@ -232,22 +232,22 @@ function copyYesWikiFiles($domain, $user, $dbUser) exec($sudo.'mv '.$destDir.'/doryphore/* '.$destDir.'/'); exec($sudo.'rm -rf '.$destDir.'/doryphore'); unlink($tmpFile); - $curl = 'curl \ - --data-urlencode \'config[default_language]=fr\' \ - --data-urlencode \'config[wakka_name]='.$domain.'\' \ - --data-urlencode \'config[root_page]=PagePrincipale\' \ - --data-urlencode \'config[mysql_host]=localhost\' \ - --data-urlencode \'config[mysql_database]='.$dbUser['database'].'\' \ - --data-urlencode \'config[mysql_user]='.$dbUser['user'].'\' \ - --data-urlencode \'config[mysql_password]='.$dbUser['password'].'\' \ - --data-urlencode \'config[table_prefix]=yeswiki_\' \ - --data-urlencode \'admin_name='.$_SERVER['admin_id'].'\' \ - --data-urlencode \'admin_password='.$_SERVER['admin_password'].'\' \ - --data-urlencode \'admin_password_conf='.$_SERVER['admin_password'].'\' \ - --data-urlencode \'admin_email='.$_SERVER['admin_email'].'\' \ - --data-urlencode \'config[rewrite_mode]=1\' \ - --data-urlencode \'submit=Continue\' \ - https://'.$domain.'/?PagePrincipale&installAction=install'; + $curl = 'curl -X POST \ +--data-urlencode \'config[default_language]=fr\' \ +--data-urlencode \'config[wakka_name]='.$domain.'\' \ +--data-urlencode \'config[root_page]=PagePrincipale\' \ +--data-urlencode \'config[mysql_host]=localhost\' \ +--data-urlencode \'config[mysql_database]='.$dbUser['database'].'\' \ +--data-urlencode \'config[mysql_user]='.$dbUser['user'].'\' \ +--data-urlencode \'config[mysql_password]='.$dbUser['password'].'\' \ +--data-urlencode \'config[table_prefix]=yeswiki_\' \ +--data-urlencode \'admin_name='.$_SERVER['admin_id'].'\' \ +--data-urlencode \'admin_password='.$_SERVER['admin_password'].'\' \ +--data-urlencode \'admin_password_conf='.$_SERVER['admin_password'].'\' \ +--data-urlencode \'admin_email='.$_SERVER['admin_email'].'\' \ +--data-urlencode \'config[rewrite_mode]=1\' \ +--data-urlencode \'submit=Continue\' \ +https://'.$domain.'/?PagePrincipale&installAction=install'; echo $curl; exec($sudo.$curl);