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