Açıklama Yok

enable_subpathing.sh 478B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # Sekerovic Dragan, oneStep2 GmbH - 2023-09-08 - quick and dirty
  3. # purpose of the script: make shuffle reverse proxyable/run shuffle on a subpath instead of root
  4. if $(ls frontend/src/App.jsx.orig.* 1>/dev/null 2>&1); then
  5. echo "shuffle src already patched for subpathing!"
  6. echo "Aborting ..."
  7. exit 1
  8. fi
  9. [[ "$1" != "" ]] && SUBPATH=$1 || SUBPATH="/shuffle"
  10. cat $0.tpl | sed "s,SUBPATH,$SUBPATH," > $0.run
  11. chmod 700 $0.run
  12. ./$0.run
  13. rm ./$0.run
  14. exit 0