summaryrefslogtreecommitdiffstats
path: root/build/install/uninstall.sh
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-02-01 10:16:41 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-01 10:16:41 +0000
commit0913dd0523847216576614dfa6aee700632a9e32 (patch)
treedba16bf19d4eeb1c264bca54cb108331aef94ca6 /build/install/uninstall.sh
parent6753eebc3e581a4491f5b7186f1c5423dae92ae4 (diff)
parent3518e4b1a55724766e91c58f06d536a9047b8a70 (diff)
Merge "f_repobuild: Use packetary to build partial mirror"
Diffstat (limited to 'build/install/uninstall.sh')
-rwxr-xr-xbuild/install/uninstall.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/build/install/uninstall.sh b/build/install/uninstall.sh
index a9e74bc39..5252c3093 100755
--- a/build/install/uninstall.sh
+++ b/build/install/uninstall.sh
@@ -31,17 +31,17 @@ DEST=$MOUNT
REPO=$DEST/var/www/nailgun/ubuntu/fuelweb/x86_64
cd $REPO
-if [ ! -f $REPO/dists/trusty/main/binary-amd64/Packages.backup ]; then
+if [ ! -f $REPO/dists/xenial/main/binary-amd64/Packages.backup ]; then
echo "Error - didn't find backup file for Packages!"
exit 1
fi
-if [ ! -f $REPO/dists/trusty/main/binary-amd64/Packages.gz.backup ]; then
+if [ ! -f $REPO/dists/xenial/main/binary-amd64/Packages.gz.backup ]; then
echo "Error - didn't find backup file for Packages.gz!"
exit 1
fi
-if [ ! -f $REPO/dists/trusty/Release.backup ]; then
+if [ ! -f $REPO/dists/xenial/Release.backup ]; then
echo "Error - didn't find backup file for Release!"
exit 1
fi
@@ -71,9 +71,9 @@ cd $REPO
echo "Restoring backups of datafiles"
-rm -f $REPO/dists/trusty/main/binary-amd64/Packages $REPO/dists/trusty/main/binary-amd64/Packages.gz
-rm -f $REPO/dists/trusty/Release $DEST/etc/puppet/manifests/site.pp
-mv $REPO/dists/trusty/main/binary-amd64/Packages.backup $REPO/dists/trusty/main/binary-amd64/Packages
-mv $REPO/dists/trusty/main/binary-amd64/Packages.gz.backup $REPO/dists/trusty/main/binary-amd64/Packages.gz
-mv $REPO/dists/trusty/Release.backup $REPO/dists/trusty/Release
+rm -f $REPO/dists/xenial/main/binary-amd64/Packages $REPO/dists/xenial/main/binary-amd64/Packages.gz
+rm -f $REPO/dists/xenial/Release $DEST/etc/puppet/manifests/site.pp
+mv $REPO/dists/xenial/main/binary-amd64/Packages.backup $REPO/dists/xenial/main/binary-amd64/Packages
+mv $REPO/dists/xenial/main/binary-amd64/Packages.gz.backup $REPO/dists/xenial/main/binary-amd64/Packages.gz
+mv $REPO/dists/xenial/Release.backup $REPO/dists/xenial/Release
mv $DEST/etc/puppet/manifests/site.pp.backup $DEST/etc/puppet/manifests/site.pp