File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
plugins/packages/RPM/SPECS Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ PKG_NAME="__PACKAGE_NAME__"
111
111
set -e
112
112
113
113
114
+ OS_VERSION= $(cat /etc/os-release | grep 'VERSION_ID= ' | cut -f2 -d= | sed 's/"//g')
114
115
115
116
set_files_ownership () {
116
117
chown -R root:root /usr/local /fledge/__INSTALL_DIR__
127
128
128
129
# Install any Python dependencies
129
130
if [ -f /usr/local /fledge/__INSTALL_DIR__/requirements.txt ]; then
130
- bash << EOF
131
- scl enable rh-python36 bash
132
- pip install -Ir /usr/local /fledge/__INSTALL_DIR__/requirements.txt
133
- EOF
131
+ if [[ ${OS_VERSION} == *"7"* ]]; then source scl_source enable rh-python36 bash; fi
132
+ python3 -m pip install -Ir /usr/local /fledge/__INSTALL_DIR__/requirements.txt
134
133
fi
135
134
136
135
echo __PLUGIN_NAME__ __PLUGIN_TYPE__ plugin is installed.
You can’t perform that action at this time.
0 commit comments