mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-01 17:23:58 +00:00
set ownership after dig and forge
This commit is contained in:
parent
3440a32839
commit
68a9589925
4
tomb
4
tomb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user