git @ Cat's Eye Technologies Funicular / d720257
`fu restore` named backups; don't `git pull` when not on branch. Chris Pressey 8 years ago
2 changed file(s) with 11 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5252 * Once it is finished, log out and log in again as 'user'. (You may or may not wish to
5353 run passwd to give user a password at this point, depending on your security needs.)
5454 * Then run:
55 cd catseye
56 shelf_populate /cdrom </cdrom/infrastructure.catalog
55 sh /cdrom/populate-shelf.sh
5756 EOF
5857 }
8181 git clone $url distrepos/$dest
8282 fi
8383
84 (cd distrepos/$dest && git pull)
84 branch=`cd distrepos/$dest && git rev-parse --abbrev-ref HEAD`
85 if [ "X$branch" != "XHEAD" ]; then
86 (cd distrepos/$dest && git pull)
87 fi
88
8589 if [ "X$tag" != X ]; then
8690 (cd distrepos/$dest && git checkout $tag)
8791 fi
182186
183187 bu=`basename $SYSTEM_IMAGE`
184188 bu="$bu-backup.tar.gz"
189
190 if [ "X$1" != X ]; then
191 bu=$1
192 fi
193
185194 tar zxvf $bu
186195 }
187196