~ubuntu-archive/ubuntu-archive-scripts/trunk

« back to all changes in this revision

Viewing changes to run-apt-mirror-snapshot

  • Committer: Łukasz 'sil2100' Zemczak
  • Date: 2022-04-19 17:02:10 UTC
  • Revision ID: lukasz.zemczak@canonical.com-20220419170210-3nmi5ryi84lf3zm8
...run ben as ubuntu using sudo, as the previous approach doesn't work

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
set -e
 
3
 
 
4
if [ "$1" = --debug ]; then
 
5
        REDIR=
 
6
else
 
7
        REDIR='>/dev/null 2>&1'
 
8
fi
 
9
 
 
10
cd "$HOME/apt-mirror"
 
11
eval ionice -c3 ./apt-mirror-snapshot $REDIR