From 15362bfeeab8483ec5cb0d25bd3e5dfe8bb20e9a Mon Sep 17 00:00:00 2001 From: gitea Date: Wed, 5 Jul 2023 21:01:23 +0800 Subject: [PATCH] [mmodify] add gem source in China, and add more info about openwrt --- update/restore.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/update/restore.sh b/update/restore.sh index 73934c4..6b845d2 100644 --- a/update/restore.sh +++ b/update/restore.sh @@ -242,6 +242,8 @@ systemctl start nginx.service # ============================================================================================================= # install jekyll echo -e "\n\e[1;34mInstall jekyll blog env...\e[0m\n" +gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/ +gem sources -l gem install jekyll jekyll-paginate jekyll b -s /opt/apps/blog/ -d /opt/websites/blog/ @@ -303,13 +305,16 @@ docker network create -d bridge --subnet=10.10.0.0/24 --gateway 10.10.0.1 inner # option ifname 'eth0' # option proto 'static' # option netmask '255.255.255.0' -# option gateway '192.168.0.1' +# option gateway '192.168.31.1' # option ip6assign '60' # option dns ' 8.8.8.8 114.114.114.114' -# option ipaddr '192.168.0.254' -# option broadcast '192.168.0.255' +# option ipaddr '192.168.31.123' +# option broadcast '192.168.31.255' # /etc/init.d/network restart -# modify the above according to different situations +# modify the above according to different situations, and the following is another method to do this +# docker network create -d macvlan --subnet=192.168.31.1/24 --gateway=192.168.31.2 -o parent=enp1s0 net_openwrt +# docker run -d --name openwrt --net net_openwrt --privileged --ip 192.168.183.123 sulinggg/openwrt:x86_64 /sbin/init +# when using openwrt or another ethernet port, keep in mind that need to modify ip addr accordingly # ============================================================================================================= # configure cloudreve after mysql docker is up