Created
December 9, 2019 14:11
-
-
Save MrEliptik/1ec5ad46ce1f495c0918822181ab9ae2 to your computer and use it in GitHub Desktop.
[WIP] Updater for https://github.com/zadam/trilium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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