set ownership after dig and forge

This commit is contained in:
Jaromil 2018-02-10 20:21:18 +01:00
parent 3440a32839
commit 68a9589925

4
tomb
View File

@ -1600,7 +1600,8 @@ dig_tomb() {
${=DD} if=/dev/urandom bs=1048576 count=$tombsize of=$TOMBPATH ${=DD} if=/dev/urandom bs=1048576 count=$tombsize of=$TOMBPATH
[[ $? == 0 && -e $TOMBPATH ]] && { [[ $? == 0 && -e $TOMBPATH ]] && {
ls -lh $TOMBPATH _sudo chown ${_UID}:${_GID} "$TOMBPATH"
ls -lh "$TOMBPATH"
} || { } || {
_warning "Error creating the tomb ::1 tomb path::" $TOMBPATH _warning "Error creating the tomb ::1 tomb path::" $TOMBPATH
_failure "Operation aborted." _failure "Operation aborted."
@ -1715,6 +1716,7 @@ forge_key() {
_failure "Operation aborted." _failure "Operation aborted."
} }
_sudo chown ${_UID}:${_GID} "$TOMBKEYFILE"
_message "Done forging ::1 key file::" $TOMBKEYFILE _message "Done forging ::1 key file::" $TOMBKEYFILE
_success "Your key is ready:" _success "Your key is ready:"
ls -lh $TOMBKEYFILE ls -lh $TOMBKEYFILE