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

« back to all changes in this revision

Viewing changes to clean-eol-series

  • 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
# Automate the task of cleaning up files related to a release once it's
 
5
# EOL.
 
6
 
 
7
DIST="$1"
 
8
 
 
9
if [ -z "$DIST" ]; then
 
10
        echo "Usage: $0 DIST"
 
11
        exit 1
 
12
fi
 
13
 
 
14
BASEDIR=/home/ubuntu-archive
 
15
rm -rfv "$BASEDIR"/proposed-migration/data/"$DIST" \
 
16
        "$BASEDIR"/proposed-migration/data/"$DIST"-proposed \
 
17
        "$BASEDIR"/proposed-migration/output/"$DIST" \
 
18
        "$BASEDIR"/public_html/germinate-output/*."$DIST" \
 
19
        "$BASEDIR"/public_html/proposed-migration/"$DIST" \
 
20
        "$BASEDIR"/public_html/proposed-migration/"$DIST"_uninst_full.txt \
 
21
        "$BASEDIR"/public_html/proposed-migration/"$DIST"_uninst.txt \
 
22
        "$BASEDIR"/public_html/proposed-migration/update_output/"$DIST"