Advertisement
defected07

webGui install.sh

Apr 30th, 2011
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.63 KB | None | 0 0
  1. #!bin/bash
  2. # install.sh
  3.  
  4. WEBGUI_HOME="/usr/local/emhttp/plugins/webGui"
  5. WEBGUI_INSTALL="/boot/webGui"        
  6.  
  7. if [ -d $WEBGUI_HOME ]; then
  8.  
  9.     mv $WEBGUI_HOME/template.php $WEBGUI_HOME/template_old.php
  10.     mv $WEBGUI_HOME/style/template.css $WEBGUI_HOME/template_old.css
  11.  
  12.     cp $WEBGUI_INSTALL/template.php $WEBGUI_HOME/template.php
  13.     cp $WEBGUI_INSTALL/style/template.css $WEBGUI_HOME/style/template.css
  14.     cp $WEBGUI_INSTALL/images/nav_bg.png $WEBGUI_HOME/images/nav_bg.png
  15.     cp -R $WEBGUI_INSTALL/images/icons $WEBGUI_HOME/images/icons
  16.  
  17. else
  18.  
  19.     echo "$WEBGUI_HOME isn't a directory. Make sure you're running unRAID 5" | logger
  20.  
  21. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement