source: llx-pool-tools/trunk/fuentes/install-files/usr/share/llx-pool/actions/trusty/update-security-ppa-only-pro.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: 657 bytes
Line 
1#!/bin/bash
2
3SECTION="update"
4WEIGHT=60
5COMMENT="Update local trusty using our security PPA only"
6
7MIRROR_DIR="/srv/nfs/lliurex1505/trusty"
8PRO_MIRROR_DIR="/srv/nfs/lliurex1505/trusty"
9
10ORIG_DIST="$MIRROR_DIR/conf/distributions"
11NEW_DIST="$MIRROR_DIR/conf/distributions.security_only"
12UPDATES="$MIRROR_DIR/conf/updates"
13
14
15echo ""
16echo -n "We are about to update local trusty using our security PPA only. Continue? [y/n] "
17read x
18if [ "$x" = "y" ]; then
19        cp $NEW_DIST $ORIG_DIST
20        cp $UPDATES.pro $UPDATES
21        reprepro -b $PRO_MIRROR_DIR -V --noskipold update
22        date +%Y/%m/%d_%H:%m > ${MIRROR_DIR}/time-of-last-update
23else
24        echo "Nothing to do."
25fi
26
27echo "Done"
Note: See TracBrowser for help on using the repository browser.