Skip to content

Commit

Permalink
Switch to Tomesh hosted patchfoo repo (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdrgn2k authored Aug 7, 2019
1 parent 743aa4d commit a3dd827
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/ssb-patchfoo/install
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091
true
VERSION="TO-V0.5"

BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

Expand All @@ -20,8 +21,11 @@ cd ~/.ssb/node_modules
npm install --unsafe-perm asyncmemo hashlru pull-stream pull-cat multicb hyperscript pull-paramap ssb-contact ssb-sort stream-to-pull-stream emoji-server pull-paginate ssb-mentions busboy mime-types pull-identify-filetype human-time pull-hyperscript jpeg-autorotate pull-catch diff pull-split pull-utf8-decoder ssb-web-resolver highlight.js pull-box-stream base64-url ssb-backlinks ssb-private

# Install patchfoo and enable plugin
#git clone https://github.com/darkdrgn2k/patchfoo.git patchfoo
git clone http://git.scuttlebot.io/%25YAg1hicat%2B2GELjE2QJzDwlAWcx0ML%2B1sXEdsWwvdt8%3D.sha256 patchfoo
git clone https://github.com/tomeshnet/patchfoo.git patchfoo
# shellcheck disable=SC2164
cd patchfoo
git checkout ${VERSION}
cd ..

# Replace ssb-server plugins.install with a static config file
# This will prevent the installation of these modules a second time
Expand All @@ -45,10 +49,6 @@ sed -i 's#this.serveSsbNpmRegistry = SsbNpmRegistry.respond(this.sbot, this.conf
# Comment out line that breaks things
sed -i "s#h('input', {type: 'file', name: 'upload'})#//h('input', {type: 'file', name: 'upload'})#" patchfoo/lib/serve.js


# this line causes patchfoo not to work at all. so comment it out.
sed -i "s#h('input', {type: 'file', name: 'upload'})#//h('input', {type: 'file', name: 'upload'})#" patchfoo/lib/serve.js

# Start service again to start patchfoo
sudo systemctl start ssb

Expand Down

0 comments on commit a3dd827

Please sign in to comment.