From d2d3c6e37b5c7a8d9e407842c3380e81d9213ffd Mon Sep 17 00:00:00 2001 From: Javan Rasokat <4342160+JavanXD@users.noreply.github.com> Date: Sun, 26 May 2024 22:23:54 +0200 Subject: [PATCH] Update 00-run.sh --- stage-honeypi/01-install-honeypi/00-run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stage-honeypi/01-install-honeypi/00-run.sh b/stage-honeypi/01-install-honeypi/00-run.sh index 0e5ecd4..72148bc 100755 --- a/stage-honeypi/01-install-honeypi/00-run.sh +++ b/stage-honeypi/01-install-honeypi/00-run.sh @@ -107,7 +107,9 @@ mkdir -p /etc/ntpsec/ echo 'Configuring pip and setting global.break-system-packages' run_in_chroot " python3 -m pip config set global.break-system-packages true -mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old || true +if [ -f /usr/lib/python3.11/EXTERNALLY-MANAGED ]; then + mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old || true +fi export PIP_ROOT_USER_ACTION=ignore python3 -m pip install --upgrade pip "