Skip to content

Commit

Permalink
Update install-ubuntu16+.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Apr 2, 2018
1 parent 69a3778 commit 00e2e53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trunk/install/install-ubuntu16+.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ sed -i "s|# deny access to .htaccess files|}#added by hustoj\n\n\n\t# deny acces
sed -i "s/post_max_size = 8M/post_max_size = 80M/g" /etc/php/7.0/fpm/php.ini
sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 80M/g" /etc/php/7.0/fpm/php.ini

COMPENSATION=`grep 'mips' /proc/cpuinfo|awk -F: '{printf("%.2f",$2/5000)}'`
sed -i "s/OJ_CPU_COMPENSATION=1.0/OJ_CPU_COMPENSATION=$COMPENSATION/g" etc/judge.conf

/etc/init.d/php7.0-fpm restart
service php7.0-fpm restart

Expand Down

0 comments on commit 00e2e53

Please sign in to comment.