source: llx-pool-tools/trunk/fuentes/install-files/usr/share/llx-pool/actions/trusty/update-ubuntu.sh @ 1275

Last change on this file since 1275 was 1275, checked in by hectorgh, 4 years ago

adding project files

  • Property svn:executable set to *
File size: 596 bytes
Line 
1#!/bin/bash
2
3SECTION="update"
4WEIGHT=50
5COMMENT="Update local pre-trusty using Ubuntu only"
6
7MIRROR_DIR="/srv/nfs/lliurex1505/pre-trusty"
8ORIG_DIST="$MIRROR_DIR/conf/distributions"
9NEW_DIST="$MIRROR_DIR/conf/distributions.ubuntu_only"
10UPDATES="$MIRROR_DIR/conf/updates"
11
12echo ""
13echo -n "We are about to update local pre-trusty using Ubuntu only. Continue? [y/n] "
14read x
15if [ "$x" = "y" ]; then
16        cp $NEW_DIST $ORIG_DIST
17        cp $UPDATES.pre $UPDATES
18        reprepro -b $MIRROR_DIR -V --noskipold update
19        date +%Y/%m/%d_%H:%m > ${MIRROR_DIR}/time-of-last-update
20else
21        echo "Nothing to do."
22fi
23
24echo "Done"
Note: See TracBrowser for help on using the repository browser.