`fu restore` named backups; don't `git pull` when not on branch.
Chris Pressey
8 years ago
52 | 52 |
* Once it is finished, log out and log in again as 'user'. (You may or may not wish to
|
53 | 53 |
run passwd to give user a password at this point, depending on your security needs.)
|
54 | 54 |
* Then run:
|
55 | |
cd catseye
|
56 | |
shelf_populate /cdrom </cdrom/infrastructure.catalog
|
|
55 |
sh /cdrom/populate-shelf.sh
|
57 | 56 |
EOF
|
58 | 57 |
}
|
81 | 81 |
git clone $url distrepos/$dest
|
82 | 82 |
fi
|
83 | 83 |
|
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 |
|
85 | 89 |
if [ "X$tag" != X ]; then
|
86 | 90 |
(cd distrepos/$dest && git checkout $tag)
|
87 | 91 |
fi
|
|
182 | 186 |
|
183 | 187 |
bu=`basename $SYSTEM_IMAGE`
|
184 | 188 |
bu="$bu-backup.tar.gz"
|
|
189 |
|
|
190 |
if [ "X$1" != X ]; then
|
|
191 |
bu=$1
|
|
192 |
fi
|
|
193 |
|
185 | 194 |
tar zxvf $bu
|
186 | 195 |
}
|
187 | 196 |
|