Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Neil Hanlon
Efs Utils
Commits
29140808
Commit
29140808
authored
Apr 15, 2020
by
Jurgen Verhasselt
Committed by
cappuccinuo
Apr 17, 2020
Browse files
add CentOS 8 support
parent
20ebbdf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
.circleci/config.yml
View file @
29140808
...
...
@@ -136,9 +136,12 @@ workflows:
-
build-rpm-package
:
name
:
centos7
image
:
centos:centos7
-
build-rpm-package
:
name
:
centos8
image
:
centos:centos8
-
build-rpm-package
:
name
:
amazon-linux-2
image
:
amazonlinux:2
-
build-rpm-package
:
name
:
amazon-linux
image
:
amazonlinux:1
\ No newline at end of file
image
:
amazonlinux:1
mangle-shebangs.sh
View file @
29140808
...
...
@@ -3,9 +3,10 @@
SYSTEM_RELEASE_PATH
=
/etc/system-release
RHEL8_REGEX
=
"Red Hat Enterprise Linux release 8"
FEDORA_REGEX
=
"Fedora release"
CENTOS8_REGEX
=
"CentOS Linux release 8"
# RHEL8
and
Fedora30+
both
treat shebangs of the form "#!/usr/bin/env python" as errors
if
[
-f
$SYSTEM_RELEASE_PATH
]
&&
[[
"
$(
cat
$SYSTEM_RELEASE_PATH
)
"
=
~
$RHEL8_REGEX
|
$FEDORA_REGEX
]]
;
then
# RHEL8
,
Fedora30+
and CentOS8
treat shebangs of the form "#!/usr/bin/env python" as errors
if
[
-f
$SYSTEM_RELEASE_PATH
]
&&
[[
"
$(
cat
$SYSTEM_RELEASE_PATH
)
"
=
~
$RHEL8_REGEX
|
$FEDORA_REGEX
|
$CENTOS8_REGEX
]]
;
then
# Replace the first line in .py to "#!/usr/bin/env python2" no
# matter what it was before
sed
-i
-e
'1 s/^.*$/\#!\/usr\/bin\/env python2/'
src/watchdog/__init__.py
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment