Skip to content

Commit 7454bb9

Browse files
committed
Latest fedora
1 parent 8971260 commit 7454bb9

3 files changed

Lines changed: 25 additions & 102 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,9 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
distro:
19-
- 'fedora:42'
20-
- 'fedora:41'
19+
- 'fedora:latest'
2120
include:
22-
- distro: 'fedora:42'
23-
pre: >-
24-
dnf install -y hostname &&
25-
dnf install -y nmap ShellCheck curl sudo perl make bzip2 file openssl rpm-build openssh-clients bc bash-completion
26-
- distro: 'fedora:41'
21+
- distro: 'fedora:latest'
2722
pre: >-
2823
dnf install -y hostname &&
2924
dnf install -y nmap ShellCheck curl sudo perl make bzip2 file openssl rpm-build openssh-clients bc bash-completion

check_ssl_cert

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2470,7 +2470,6 @@ check_cert_end_date() {
24702470

24712471
checkend "${1}" 0
24722472

2473-
# if ! echo "${1}" | ${OPENSSL} x509 -in /dev/stdin -noout -checkend 0 >/dev/null; then
24742473
if ! checkend "${1}" 0 ; then
24752474

24762475
if compare "${ELEM_DAYS_VALID}" ">=" 0 && compare "${ELEM_DAYS_VALID}" "<" 1; then

utils/prepare_rpm.sh

Lines changed: 23 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -19,100 +19,29 @@ echo "dist: ${DIST}"
1919

2020
WEBROOT=/var/www/rpm
2121
case ${DIST} in
22-
fc30)
23-
RPMDIR="${WEBROOT}/fedora/30/${ARCH}"
24-
SRPMDIR="${WEBROOT}/fedora/30/SRPMS"
25-
DIST='fedora'
26-
RELEASE='30'
27-
;;
28-
fc31)
29-
RPMDIR="${WEBROOT}/fedora/31/${ARCH}"
30-
SRPMDIR="${WEBROOT}/fedora/31/SRPMS"
31-
DIST='fedora'
32-
RELEASE='31'
33-
;;
34-
fc32)
35-
RPMDIR="${WEBROOT}/fedora/32/${ARCH}"
36-
SRPMDIR="${WEBROOT}/fedora/32/SRPMS"
37-
DIST='fedora'
38-
RELEASE='32'
39-
;;
40-
fc33)
41-
RPMDIR="${WEBROOT}/fedora/33/${ARCH}"
42-
SRPMDIR="${WEBROOT}/fedora/33/SRPMS"
43-
DIST='fedora'
44-
RELEASE='33'
45-
;;
46-
fc34)
47-
RPMDIR="${WEBROOT}/fedora/34/${ARCH}"
48-
SRPMDIR="${WEBROOT}/fedora/34/SRPMS"
49-
DIST='fedora'
50-
RELEASE='34'
51-
;;
52-
fc35)
53-
RPMDIR="${WEBROOT}/fedora/35/${ARCH}"
54-
SRPMDIR="${WEBROOT}/fedora/35/SRPMS"
55-
DIST='fedora'
56-
RELEASE='35'
57-
;;
58-
fc36)
59-
RPMDIR="${WEBROOT}/fedora/36/${ARCH}"
60-
SRPMDIR="${WEBROOT}/fedora/36/SRPMS"
61-
DIST='fedora'
62-
RELEASE='36'
63-
;;
64-
fc37)
65-
RPMDIR="${WEBROOT}/fedora/37/${ARCH}"
66-
SRPMDIR="${WEBROOT}/fedora/37/SRPMS"
67-
DIST='fedora'
68-
RELEASE='37'
69-
;;
70-
fc38)
71-
RPMDIR="${WEBROOT}/fedora/38/${ARCH}"
72-
SRPMDIR="${WEBROOT}/fedora/38/SRPMS"
73-
DIST='fedora'
74-
RELEASE='38'
75-
;;
76-
fc39)
77-
RPMDIR="${WEBROOT}/fedora/39/${ARCH}"
78-
SRPMDIR="${WEBROOT}/fedora/39/SRPMS"
79-
DIST='fedora'
80-
RELEASE='39'
81-
;;
82-
fc40)
83-
RPMDIR="${WEBROOT}/fedora/40/${ARCH}"
84-
SRPMDIR="${WEBROOT}/fedora/40/SRPMS"
85-
DIST='fedora'
86-
RELEASE='40'
87-
;;
88-
fc41)
89-
RPMDIR="${WEBROOT}/fedora/41/${ARCH}"
90-
SRPMDIR="${WEBROOT}/fedora/41/SRPMS"
91-
DIST='fedora'
92-
RELEASE='41'
93-
;;
94-
fc42)
95-
RPMDIR="${WEBROOT}/fedora/42/${ARCH}"
96-
SRPMDIR="${WEBROOT}/fedora/42/SRPMS"
97-
DIST='fedora'
98-
RELEASE='42'
99-
;;
100-
el7)
101-
RPMDIR="${WEBROOT}/epel/7/${ARCH}"
102-
SRPMDIR="${WEBROOT}/epel/7/SRPMS"
103-
DIST='epel'
104-
RELEASE='7'
105-
;;
106-
el8)
107-
RPMDIR="${WEBROOT}/epel/8/${ARCH}"
108-
SRPMDIR="${WEBROOT}/epel/8/SRPMS"
109-
DIST='epel'
110-
RELEASE='8'
111-
;;
112-
*)
113-
echo "Unknown distribution ${DIST}" 1>&2
114-
exit 1
115-
;;
22+
fc[0-9]*)
23+
# strip the 'fc' prefix
24+
RELEASE=$( echo "${DIST}" | sed 's/^fc//' )
25+
DIST=fedora
26+
RPMDIR="${WEBROOT}/${DIST}/${RELEASE}/${ARCH}"
27+
SRPMDIR="${WEBROOT}/${DIST}/${RELEASE}/SRPMS"
28+
;;
29+
el7)
30+
RPMDIR="${WEBROOT}/epel/7/${ARCH}"
31+
SRPMDIR="${WEBROOT}/epel/7/SRPMS"
32+
DIST='epel'
33+
RELEASE='7'
34+
;;
35+
el8)
36+
RPMDIR="${WEBROOT}/epel/8/${ARCH}"
37+
SRPMDIR="${WEBROOT}/epel/8/SRPMS"
38+
DIST='epel'
39+
RELEASE='8'
40+
;;
41+
*)
42+
echo "Unknown distribution ${DIST}" 1>&2
43+
exit 1
44+
;;
11645
esac
11746

11847
echo "RPMDIR: ${RPMDIR}"

0 commit comments

Comments
 (0)