1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
ContextOS/etc/conf/rc_local.sh
2023-10-03 20:03:26 +08:00

6 lines
570 B
Bash

contexts=${contexts:=/home/shy/contexts}
su - shy -c "cd $contexts && ./bin/ice.bin forever start &"
mkdir /tmp/nginx; cd $contexts/usr/local/daemon/10000 && ./sbin/nginx -p $PWD
cd $contexts/../docker && ./dockerd --host unix://$PWD/docker.sock --pidfile $PWD/docker.pid --exec-root=$PWD/exec --data-root=$PWD/data --registry-mirror "https://ccr.ccs.tencentyun.com" &
# cd $contexts/usr/install/docker && ./dockerd --host unix://$PWD/docker.sock --pidfile $PWD/docker.pid --exec-root=$PWD/exec --data-root=$PWD/data --registry-mirror "https://ccr.ccs.tencentyun.com" &