File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,14 @@ ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
5050# For ansible apt module
5151cd /tmp
5252apt-get download python3-apt=1.8.4.3
53- dpkg -x python3-apt_1.8.4.3_amd64.deb python3-apt
54- rm python3-apt_1.8.4.3_amd64.deb
53+ ARCH=` arch`
54+ PKG_ARCH=` dpkg --print-architecture`
55+ dpkg -x python3-apt_1.8.4.3_${PKG_ARCH} .deb python3-apt
56+ rm python3-apt_1.8.4.3_${PKG_ARCH} .deb
5557cp -r /tmp/python3-apt/usr/lib/python3/dist-packages/* /usr/lib/python${PY_SHORT} /site-packages/
5658cd /usr/lib/python${PY_SHORT} /site-packages/
57- cp apt_pkg.cpython-37m-x86_64 -linux-gnu.so apt_pkg.so
58- cp apt_inst.cpython-37m-x86_64 -linux-gnu.so apt_inst.so
59+ cp apt_pkg.cpython-37m-${ARCH} -linux-gnu.so apt_pkg.so
60+ cp apt_inst.cpython-37m-${ARCH} -linux-gnu.so apt_inst.so
5961rm -rf /tmp/python3-apt
6062# Install splunk-ansible dependencies
6163cd /
You can’t perform that action at this time.
0 commit comments