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 committed Sep 30, 2024
1 parent c127a84 commit ad1fa34
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 ad1fa34

Please sign in to comment.