Advertisement
s243a

run_sandbox.sh (new)

Nov 16th, 2020
1,172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.19 KB | None | 0 0
  1. #!/bin/bash
  2. rm ./sandbox.out #For now I don't want to use the previous config.
  3. SB_PREFIX=/mnt/+aufs+devsave+test_save+ext2/dev/gitlab/psandbox-master.tar.gz.extracted/psandbox-master
  4. OS_HOME=$(realpath .)
  5. MP="/mnt/+aufs+devsave+test_save+ext2"
  6. mkdir -p "$MP"
  7. PSUBDIR="upup/fossapup/64/9.5"
  8. OS_HOME="$MP/$PSUBDIR"
  9. LOGFILE="$(realpath "$OS_HOME/sandbox.log")"
  10. RW_LAYER="$(realpath "$OS_HOME/fossasave")"
  11. B1_source="/aufs/devsave/Dropbox (Maestral)/s243a Personal"
  12. B1_target=/Remote/jobs #Sometimes I might get this folder via samaba isntead of a bind.
  13. mkdir -p "$RW_LAYER"
  14. #if [ -f ./sandbox.out ]; then
  15. #  bash -x "$SB_PREFIX"/usr/bin/psandbox.sh --logfile "$LOGFILE" -f "$OS_HOME"/sandbox.out -o "$OS_HOME"/sandbox.out --pdrv #"$MP" --maybe-psubdir "$PSUBDIR" -e "devx_fossapup64_9.5.sfs" --no-exit --rw-layer "$RW_LAYER" --copy-Xauth --bind-X11-#sockets --copy-resolv_conf --bind "$B1_source" "$B1_target"
  16. #
  17. #else
  18.   bash -x "$SB_PREFIX"/usr/bin/psandbox.sh --logfile "$LOGFILE" -o "$OS_HOME"/sandbox.out --pdrv "$MP" --maybe-psubdir "$PSUBDIR" -e "devx_fossapup64_9.5.sfs" --no-exit --rw-layer "$RW_LAYER" --copy-Xauth --bind-X11-sockets --copy-resolv_conf --bind "$B1_source" "$B1_target"
  19. #fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement