From ef3748efcd75bff8563a9ec47e0db8700d291eb6 Mon Sep 17 00:00:00 2001 From: Felix Favre Date: Tue, 16 Feb 2016 20:11:16 +0100 Subject: [PATCH] add tresor --- dooris.conf.sample | 1 + shared | 5 +++++ tresor | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100755 tresor diff --git a/dooris.conf.sample b/dooris.conf.sample index 256d7a5..82ed7b1 100644 --- a/dooris.conf.sample +++ b/dooris.conf.sample @@ -1 +1,2 @@ password=sesamaenderdich +tresor=1111 diff --git a/shared b/shared index 4faa2f3..2c697cb 100755 --- a/shared +++ b/shared @@ -12,3 +12,8 @@ password="$(grep password ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \ if [ -z "${password}" ]; then echo "WARNING: password in ${config} is missing!" >&2 fi + +tresor="$(grep tresor ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \t')" +if [ -z "${password}" ]; then + echo "WARNING: tresor in ${config} is missing!" >&2 +fi diff --git a/tresor b/tresor new file mode 100755 index 0000000..08efa22 --- /dev/null +++ b/tresor @@ -0,0 +1,7 @@ +#!/bin/sh +. $(dirname $(readlink "$0"))/shared + +echo "Welcome to the Vault!" + +echo "---------------------" +echo "Your Key is: ${tresor}"