tsome didn't replace - coffin - secure lan file storage on a device
HTML git clone git://parazyd.org/coffin.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit f512d6c5537da9637e00dc3c8840a6a9819fef0c
DIR parent 9f9672d40ff940a46df63523aeeab501c2ebd79b
HTML Author: parazyd <parazyd@dyne.org>
Date: Mon, 22 Feb 2016 15:13:10 +0100
some didn't replace
Diffstat:
M bin/sacrist | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/bin/sacrist b/bin/sacrist
t@@ -55,7 +55,7 @@ _ttabmagic() {
_msg warn "Comparekey false"
keypass=$(echo $entry | awk -F: '{print $3}')
echo "Tomb passphrase: $keypass"
- sudo -u $undertaker $tomb open $graveyard/$tombid.tomb -k $coffindot/$tombname.key \
+ sudo -u $undertaker $tomb open $graveyard/$tombid.tomb -k $coffindot/$tombid.key \
--unsafe --tomb-pwd $keypass # Deal with this shit somehow!
if [[ -d "/media/$tombid" ]]; then
t@@ -96,9 +96,9 @@ _create_new_tomb() {
sudo -u $undertaker $tomb dig -s $tombsize $graveyard/$tombid.tomb
sudo -u $undertaker $tomb forge $graveyard/$tombid.key --unsafe --tomb-pwd "$keypass"
- sudo -u $undertaker $tomb lock $graveyard/$tombid.tomb -k $graveyard/$tombname.key \
+ sudo -u $undertaker $tomb lock $graveyard/$tombid.tomb -k $graveyard/$tombid.key \
--unsafe --tomb-pwd "$keypass"
- mv $graveyard/$tombid.key $coffindot/ && chown $undertaker:$undertaker $coffindot/$tombname.key && \
+ mv $graveyard/$tombid.key $coffindot/ && chown $undertaker:$undertaker $coffindot/$tombid.key && \
_msg info "Moved and chowned keyfile"
echo "$undertaker:$tombid:$keypass:true" >> $ttab
_msg info "Wrote to $ttab"