reconfig-1.9.4 457 B

123456789101112131415161718
  1. #!/bin/bash
  2. die() {
  3. echo "#####"
  4. echo $1
  5. echo "#####"
  6. exit 1
  7. }
  8. if [ $1 = "install" ]; then
  9. sed -e "s|^#\(.*\)/path/to/wikiconfigdir|\1${VHOST_ROOT}/${PN}-${PVR}|g" -i ${MY_INSTALLDIR}/moin.cgi || die "sed failed"
  10. sed -e "s|#url_prefix_static|url_prefix_static|" -i ${VHOST_ROOT}/${PN}-${PVR}/wikiconfig.py || die "sed failed"
  11. sed -e "s|//|/|" -i ${VHOST_ROOT}/${PN}-${PVR}/wikiconfig.py || die "sed failed"
  12. elif [ $1 = "clean" ]; then
  13. echo $1
  14. fi