浏览代码

Link within chroot

Bob Mottram 7 年前
父节点
当前提交
460eece8cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-app-cryptpad

+ 1
- 1
src/freedombone-app-cryptpad 查看文件

323
     echo '' >> $cryptpad_nginx_site
323
     echo '' >> $cryptpad_nginx_site
324
     echo '  try_files /www/$uri /www/$uri/index.html /customize/$uri;' >> $cryptpad_nginx_site
324
     echo '  try_files /www/$uri /www/$uri/index.html /customize/$uri;' >> $cryptpad_nginx_site
325
     echo '}' >> $cryptpad_nginx_site
325
     echo '}' >> $cryptpad_nginx_site
326
-    ln -s $cryptpad_nginx_site $rootdir/etc/nginx/sites-enabled/cryptpad
326
+    chroot "$rootdir" ln -s /etc/nginx/sites-available/cryptpad /etc/nginx/sites-enabled/cryptpad
327
 
327
 
328
     cd $rootdir$CRYPTPAD_DIR
328
     cd $rootdir$CRYPTPAD_DIR
329
 
329