Skip to content

Commit 9475480

Browse files
authored
refactor: mount config file instead of passing env
1 parent 6c9e2da commit 9475480

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

post/安装.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ sudo docker --version # 检查 docker 是否正常安装
2121
```bash
2222
git clone https://github.com/UniversalOJ/UOJ-System.git # 克隆 UOJ-System 仓库
2323
cd UOJ-System
24-
genRandStr(){ cat /dev/urandom | tr -dc [:alnum:] | head -c $1; }
25-
sed -i -e "s/_salt_0_/$(genRandStr 32)/g" -e "s/_salt_1_/$(genRandStr 16)/g" -e "s/_salt_2_/$(genRandStr 16)/g" -e "s/_salt_3_/$(genRandStr 16)/g" docker-compose.yml # 替换配置文件中的 salt
24+
bash prepare.sh # 进行一些准备工作
2625
sudo docker-compose up -d # 启动 UOJ
2726
```
2827

0 commit comments

Comments
 (0)