Advertisement
chrissharp123

Untitled

Apr 25th, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. root@csharp-main:~# cat reset_npm_stuff.sh
  2. #!/bin/bash
  3.  
  4. SOURCE_DIR="/home/opensrf"
  5. EG_DIRNAME="Evergreen"
  6. INSTALL_PREFIX="/openils"
  7. OS_VER="$(lsb_release -si | tr [:upper:] [:lower:])-$(lsb_release -sc | tr [:upper:] [:lower:])"
  8.  
  9. # delete system-level npm stuff
  10. cd /usr/local/bin/
  11. rm ng node npm npx
  12. cd ../lib/
  13. rm -rf node_modules/
  14.  
  15. # delete node_modules everywhere
  16. rm -rf $INSTALL_PREFIX/var/web/js/ui/default/staff/node_modules
  17. rm -rf $SOURCE_DIR/$EG_DIRNAME/Open-ILS/web/js/ui/default/staff/node_modules
  18. rm -rf $SOURCE_DIR/$EG_DIRNAME/Open-ILS/src/eg2/node_modules
  19. rm -rf $SOURCE_DIR/$EG_DIRNAME/Open-ILS/web/opac/deps/node_modules
  20.  
  21. cd $SOURCE_DIR && make -f $SOURCE_DIR/$EG_DIRNAME/Open-ILS/src/extras/Makefile.install $OS_VER-developer
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement