add tresor

This commit is contained in:
Felix Favre 2016-02-16 20:11:16 +01:00
parent 2ddd44d402
commit ef3748efcd
3 changed files with 13 additions and 0 deletions

View file

@ -1 +1,2 @@
password=sesamaenderdich
tresor=1111

5
shared
View file

@ -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

7
tresor Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
. $(dirname $(readlink "$0"))/shared
echo "Welcome to the Vault!"
echo "---------------------"
echo "Your Key is: ${tresor}"