Skip to content

Instantly share code, notes, and snippets.

@MrEliptik
Created December 9, 2019 14:11
Show Gist options
  • Save MrEliptik/1ec5ad46ce1f495c0918822181ab9ae2 to your computer and use it in GitHub Desktop.
Save MrEliptik/1ec5ad46ce1f495c0918822181ab9ae2 to your computer and use it in GitHub Desktop.
#!/bin/bash
RELEASES_BETA="https://api.github.com/repos/zadam/trilium/releases"
RELEASES_STABLE="https://api.github.com/repos/zadam/trilium/releases/latest"
TRILIUM_DIR="/home/mreliptik/trilium/"
# fetch the latest release URL (non beta)
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
# pull the release (with wget)
# backup the DB before new installation (already existing script)
# stop previous install
# unzip release
# cd in release folder & run npm install
# run ./trilium.sh
# delete previous folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment