浏览代码

Also change git-ssb hostname in nginx

Bob Mottram 7 年前
父节点
当前提交
3b952162cb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/freedombone-mesh-batman

+ 2
- 0
src/freedombone-mesh-batman 查看文件

508
     fi
508
     fi
509
 
509
 
510
     sed -i "s|\"host\":.*|\"host\": \"${HOSTNAME}.local\",|g" /etc/scuttlebot/.ssb/config
510
     sed -i "s|\"host\":.*|\"host\": \"${HOSTNAME}.local\",|g" /etc/scuttlebot/.ssb/config
511
+    sed -i "s|server_name .*|server_name ${HOSTNAME}.local;|g" /etc/nginx/sites-available/git_ssb
511
     systemctl restart scuttlebot
512
     systemctl restart scuttlebot
513
+    systemctl restart nginx
512
 
514
 
513
     verify
515
     verify
514
 }
516
 }