Skip to content

Commit 781b7e1

Browse files
committed
fix: python2 leftover aliasing
1 parent 424eedb commit 781b7e1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tools/vnc-setup.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,9 @@ if [ "${INSTALL_NOVNC}" = "true" ] && [ ! -d "/usr/local/novnc" ]; then
123123
ln -s /usr/local/novnc/websockify-${WEBSOCKETIFY_VERSION} /usr/local/novnc/noVNC-${NOVNC_VERSION}/utils/websockify
124124
rm -f /tmp/websockify-install.zip /tmp/novnc-install.zip
125125

126-
novnc_python_package="python-is-python3"
127-
novnc_numpy_package="python3-numpy"
128-
129-
if ! dpkg -s ${novnc_python_package} ${novnc_numpy_package} > /dev/null 2>&1; then
130-
apt-get -y install --no-install-recommends ${novnc_python_package} ${novnc_numpy_package}
131-
fi
132-
sed -i -E 's/^python /python2 /' /usr/local/novnc/websockify-${WEBSOCKETIFY_VERSION}/run
126+
# Install noVNC dependencies and use them.
127+
check_packages python3-minimal python3-numpy
128+
sed -i -E 's/^python /python3 /' /usr/local/novnc/websockify-${WEBSOCKETIFY_VERSION}/run
133129
fi
134130

135131
# Set up folders for scripts and init files

0 commit comments

Comments
 (0)