From 59c27abd45f26486b7eb3e138ad9662ecc0ab351 Mon Sep 17 00:00:00 2001 From: Oliver Grawert Date: Mon, 30 Sep 2024 13:37:57 +0200 Subject: [PATCH] fix wrongly hardcoded /usr/bin/python interpreter in pagekite --- snap/snapcraft.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index f0249bed0..65b2ab261 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -49,3 +49,8 @@ parts: npm install --only-dev npm run-script build cp -av build $CRAFT_PART_INSTALL/lib/node_modules/webthings-gateway/ + # fix wrongly hardcoded /usr/bin/python interpreter in pagekite + if [ -e $CRAFT_PART_INSTALL/lib/node_modules/webthings-gateway/pagekite.py ]; then + sed -i 's;#!.*;#! /usr/bin/env python3;' \ + $CRAFT_PART_INSTALL/lib/node_modules/webthings-gateway/pagekite.py + fi