release script, moved all scripts to bin directory

This commit is contained in:
azivner
2017-12-25 15:01:33 -05:00
parent bca5087426
commit f90c2317fc
6 changed files with 66 additions and 16 deletions

16
bin/generate-cert.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Script generates certificate by default into the ~/trilium-data/cert where it is expected by Trilium
# If directory is given in argument, certificate will be created there.
if [ $# -eq 0 ]
then
DIR=~/trilium-data/cert
else
DIR=$1
fi
mkdir -p "$DIR"
cd "$DIR"
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 2000 -nodes