fix: Fix the wrong generation of cookie salt

The last commit changed the installation script a lot, but made a
mistake on the genration of config. It gen the cookie-checksum-salt
to user-checksum-salt. Just fix it.
This commit is contained in:
ceba_robot 2017-09-17 23:21:22 +08:00
parent 19aac52bcd
commit 1c1e219681

View File

@ -161,7 +161,7 @@ setWebConf(){
\$config = include '/var/www/uoj/app/.default-config.php';
\$config['database']['password']='$_database_password_';
\$config['security']['user']['client_salt']='$(genRandStr 32)';
\$config['security']['user']['checksum_salt']=['$(genRandStr 16)','$(genRandStr 16)','$(genRandStr 16)'];
\$config['security']['cookie']['checksum_salt']=['$(genRandStr 16)','$(genRandStr 16)','$(genRandStr 16)'];
\$config['judger']['socket']['port']='$_judger_socket_port_';
\$config['judger']['socket']['password']='$_judger_socket_password_';
\$config['svn']['our-root']['password']='$_svn_certroot_password_';