fix(install) : single quotes

This commit is contained in:
mrflos 2023-02-01 17:39:07 +03:00
parent 756a766aa7
commit caaef2666d

View file

@ -233,20 +233,20 @@ function copyYesWikiFiles($domain, $user, $dbUser)
exec($sudo.'rm -rf '.$destDir.'/doryphore'); exec($sudo.'rm -rf '.$destDir.'/doryphore');
unlink($tmpFile); unlink($tmpFile);
$curl = 'curl \ $curl = 'curl \
--data-urlencode "config[default_language]=fr" \ --data-urlencode \'config[default_language]=fr\' \
--data-urlencode "config[wakka_name]='.$domain.'" \ --data-urlencode \'config[wakka_name]='.$domain.'\' \
--data-urlencode "config[root_page]=PagePrincipale" \ --data-urlencode \'config[root_page]=PagePrincipale\' \
--data-urlencode "config[mysql_host]=localhost" \ --data-urlencode \'config[mysql_host]=localhost\' \
--data-urlencode "config[mysql_database]='.$dbUser['database'].'" \ --data-urlencode \'config[mysql_database]='.$dbUser['database'].'\' \
--data-urlencode "config[mysql_user]='.$dbUser['user'].' \ --data-urlencode \'config[mysql_user]='.$dbUser['user'].' \
--data-urlencode "config[mysql_password]='.$dbUser['password'].'" \ --data-urlencode \'config[mysql_password]='.$dbUser['password'].'\' \
--data-urlencode "config[table_prefix]=yeswiki_" \ --data-urlencode \'config[table_prefix]=yeswiki_\' \
--data-urlencode "admin_name='.$_SERVER['admin_id'].'" \ --data-urlencode \'admin_name='.$_SERVER['admin_id'].'\' \
--data-urlencode "admin_password='.$_SERVER['admin_password'].'" \ --data-urlencode \'admin_password='.$_SERVER['admin_password'].'\' \
--data-urlencode "admin_password_conf='.$_SERVER['admin_password'].'" \ --data-urlencode \'admin_password_conf='.$_SERVER['admin_password'].'\' \
--data-urlencode "admin_email='.$_SERVER['admin_email'].'" \ --data-urlencode \'admin_email='.$_SERVER['admin_email'].'\' \
--data-urlencode "config[rewrite_mode]=1" \ --data-urlencode \'config[rewrite_mode]=1\' \
--data-urlencode "submit=Continue" \ --data-urlencode \'submit=Continue\' \
https://'.$domain.'/?PagePrincipale&installAction=install'; https://'.$domain.'/?PagePrincipale&installAction=install';
echo $curl; echo $curl;
exec($sudo.$curl); exec($sudo.$curl);