Magellan Linux

Diff of /alx-src/branches/alxconf_20060908/bin/update-alx.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 340 by niro, Sun Oct 9 21:27:45 2005 UTC revision 374 by niro, Mon Feb 20 14:49:30 2006 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/bin/update-alx.sh,v 1.3 2005-10-09 21:27:45 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/bin/update-alx.sh,v 1.4 2006-02-20 14:49:30 niro Exp $
3    
4  die()  die()
5  {  {
# Line 57  source /etc/alxconfig-ng/config.rc Line 57  source /etc/alxconfig-ng/config.rc
57    
58  # in kilobytes ! min 50MB are needed !!  # in kilobytes ! min 50MB are needed !!
59  MIN_SPACE=50000  MIN_SPACE=50000
60  SERVER_SHARE="//${SQL_HOST}/magetmp"  SERVER_SHARE="${SMB_UPDATE_HOST}"
61  USER="${SQL_USER}"  USER="${SMB_UPDATE_USER}"
62  PASS="${SQL_PASS}"  PASS="${SMB_UPDATE_PASS}"
63    
64    # setup mage.rc
65    sed -i -e "s@^\(MIRRORS=\).*@\1\"${MAGE_MIRRORS}\"@" \
66     -e "s@^\(RSYNC=\).*@\1\"${MAGE_RSYNC}\"@" \
67     /etc/mage.rc || die "fixing /etc/mage.rc"
68    
69  if [ $(diskfree /) -le ${MIN_SPACE} ]; then  if [ $(diskfree /) -le ${MIN_SPACE} ]; then
70   echo "Mounting server '${SERVER_SHARE}' ..."   echo "Mounting server '${SERVER_SHARE}' ..."

Legend:
Removed from v.340  
changed lines
  Added in v.374