Skip to content

Commit

Permalink
fix wrongly hardcoded /usr/bin/python interpreter in pagekite
Browse files Browse the repository at this point in the history
  • Loading branch information
ogra1 authored and benfrancis committed Oct 1, 2024
1 parent 0bb2ccd commit 59c27ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 59c27ab

Please sign in to comment.