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