Author: nextgens
Date: 2008-09-27 16:51:55 +0000 (Sat, 27 Sep 2008)
New Revision: 22863

Modified:
   trunk/apps/new_installer/scripts/update.sh
Log:
update.sh: check if a pre-update.sh script exists and run it before we actually 
attempt to update

Modified: trunk/apps/new_installer/scripts/update.sh
===================================================================
--- trunk/apps/new_installer/scripts/update.sh  2008-09-27 15:37:55 UTC (rev 
22862)
+++ trunk/apps/new_installer/scripts/update.sh  2008-09-27 16:51:55 UTC (rev 
22863)
@@ -5,6 +5,13 @@
 SHA1_Sha1Test="16bfa2d0e1f8bd7b2be79b2c26d88f47ea2164ca"
 echo "Updating freenet"

+if test -x pre-update.sh
+then
+       echo "Running the pre-update script:"
+       exec pre-update.sh
+       echo "Returning from the pre-update script"
+fi
+
 invert_return_code () {
         $*
         if test $? -ne 0


Reply via email to