-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-apt
executable file
·33 lines (28 loc) · 997 Bytes
/
update-apt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/bash
basedir='/home/build/result'
debrepos='jessie'
uburepos='xenial'
# Debian repos
for t in debian gpl/debian; do
cd "$basedir/$t"
pwd
for d in $debrepos; do
apt-ftparchive generate -c="/home/build/etc/aptftp-$d.conf" "/home/build/etc/aptgenerate-$d.conf"
cd "$basedir/$t/dists/virtualmin-$d"
apt-ftparchive release -c="/home/build/etc/aptftp-$d.conf" . > Release
# Sign with the old key
rm -f Release.gpg
gpg -abs --local-user 31D2B18872EAF68EFB81F81DE8DD3FA0A0BDBCF9 -o Release.gpg Release
done
done
for t in ubuntu gpl/ubuntu; do
cd "$basedir/$t"
for d in $uburepos; do
apt-ftparchive generate -c="/home/build/etc/aptftp-$d.conf" "/home/build/etc/aptgenerate-$d.conf"
cd "$basedir/$t/dists/virtualmin-$d"
apt-ftparchive release -c="/home/build/etc/aptftp-$d.conf" . > Release
# Sign with the old key
rm -f Release.gpg
gpg -abs --local-user 31D2B18872EAF68EFB81F81DE8DD3FA0A0BDBCF9 -o Release.gpg Release
done
done