mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-29 08:14:08 +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
|
||||
|
||||
[[ $? == 0 && -e $TOMBPATH ]] && {
|
||||
ls -lh $TOMBPATH
|
||||
_sudo chown ${_UID}:${_GID} "$TOMBPATH"
|
||||
ls -lh "$TOMBPATH"
|
||||
} || {
|
||||
_warning "Error creating the tomb ::1 tomb path::" $TOMBPATH
|
||||
_failure "Operation aborted."
|
||||
@ -1715,6 +1716,7 @@ forge_key() {
|
||||
_failure "Operation aborted."
|
||||
}
|
||||
|
||||
_sudo chown ${_UID}:${_GID} "$TOMBKEYFILE"
|
||||
_message "Done forging ::1 key file::" $TOMBKEYFILE
|
||||
_success "Your key is ready:"
|
||||
ls -lh $TOMBKEYFILE
|
||||
|
Loading…
Reference in New Issue
Block a user