在 chmod 之前 chown,否则用户和用户组不是 root 的时候,可能不是预想的结果。
This commit is contained in:
parent
a1eb1628ee
commit
69223da979
|
@ -1,8 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
chown compiler:compiler /spj
|
||||
echo 0 > /tmp/counter
|
||||
core=$(grep --count ^processor /proc/cpuinfo)
|
||||
n=$(($core*4))
|
||||
chmod 400 /token.txt /tmp/counter
|
||||
chmod -R 400 /test_case
|
||||
gunicorn --workers $n --threads $n --error-logfile /log/gunicorn.log --time 600 --bind 0.0.0.0:8080 server:wsgiapp
|
||||
chown -R root:root /test_case /token.txt
|
||||
chmod -R 400 /test_case /token.txt
|
||||
gunicorn --workers $n --threads $n --error-logfile /log/gunicorn.log --time 600 --bind 0.0.0.0:8080 server:wsgiapp
|
||||
|
|
Loading…
Reference in New Issue