[PC-BSD Commits] r616 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Thu Aug 23 11:49:06 PDT 2007


Author: kris
Date: 2007-08-23 11:49:06 -0700 (Thu, 23 Aug 2007)
New Revision: 616

Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh
Log:

Changed update script to save files in local/etc



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh	2007-08-23 17:14:51 UTC (rev 615)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh	2007-08-23 18:49:06 UTC (rev 616)
@@ -33,6 +33,7 @@
 mv /mnt/usr/local/share/applnk /mnt/tmp/upgradebackup/
 mv /mnt/usr/local/share/config/kdm/kdmrc /mnt/tmp/upgradebackup/
 mv /mnt/usr/local/MyPrograms /mnt/tmp/upgradebackup/
+mv /mnt/usr/local/etc /mnt/tmp/upgradebackup/localetc
 mv /mnt/Programs /mnt/tmp/upgradebackup/
 mv /mnt/usr/Programs /mnt/tmp/upgradebackup/usrPrograms
 mv /mnt/usr/home /mnt/tmp/upgradebackup/usrhome
@@ -57,6 +58,11 @@
 rm -rf libexec 2>/dev/null 
 rm -rf var 2>/dev/null
 mkdir -p /mnt/usr
+
+# Move back the local/etc directory so it gets saved / upgraded
+mkdir -p /mnt/usr/local
+mv /mnt/tmp/upgradebackup/localetc /mnt/usr/local/etc
+
 mv /mnt/ports /mnt/usr/ports 2>/dev/null
 mv /mnt/src /mnt/usr/src 2>/dev/null
 



More information about the Commits mailing list