baidunetdisk_entrypoint.sh 965 B

123456789101112131415
  1. #!/bin/sh
  2. # TODO: change permission more elegant
  3. chmod a+rwx /root/baidunetdisk
  4. #chmod a+rwx /root/baidunetdiskdownload
  5. #chmod a+rwx /root/Downloads
  6. /usr/bin/vncserver -geometry 1600x1200 2>&1
  7. /opt/noVNC/utils/novnc_proxy --vnc localhost:5901 2>&1 &
  8. echo "Access through VNC (5091) or browser (localhost:6080) using password: 12345678."
  9. DISPLAY=:1 /opt/baidunetdisk/baidunetdisk --no-sandbox 2>&1
  10. #DISPLAY=:1 /opt/baidunetdisk/baidunetdisk --type=renderer --no-sandbox --enable-features=WebComponentsV0Enabled --disable-features=SpareRendererForSitePerProcess --lang=en-US --app-path=/opt/baidunetdisk/resources/app.asar --node-integration --node-integration-in-worker --webview-tag --no-sandbox --no-zygote --enable-remote-module --background-color=#F6F6F6 --enable-spellcheck --enable-websql --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --no-v8-untrusted-code-mitigations --shared-files=v8_snapshot_data:100 2>&1
  11. exit 0