Skip to content

Instantly share code, notes, and snippets.

@joshuabenuck
Created November 17, 2019 19:01
Show Gist options
  • Save joshuabenuck/2936e9ff977013a43b78ba56b9653cda to your computer and use it in GitHub Desktop.
Save joshuabenuck/2936e9ff977013a43b78ba56b9653cda to your computer and use it in GitHub Desktop.
Quick script to create a self-contained fedwiki install. Data files are still stored in their default location (~/.wiki).
#!/bin/bash
rm -rf $1
mkdir $1
cd $1
curl -O https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.xz
tar Jxf *.tar.xz
rm *.tar.xz
mv node-* nodejs
git clone https://github.com/fedwiki/wiki
cd wiki
git checkout restrict-new-wiki
../nodejs/bin/npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment