mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-29 16:14:59 +00:00
remove redundant variable
This commit is contained in:
@@ -701,7 +701,7 @@ cleanup_provider_packages() {
|
|||||||
else
|
else
|
||||||
if confirm "Review and potentially remove root SSH keys?" "n"; then
|
if confirm "Review and potentially remove root SSH keys?" "n"; then
|
||||||
local backup_file
|
local backup_file
|
||||||
local backup_file="$BACKUP_DIR/root_authorized_keys.backup.$(date +%Y%m%d_%H%M%S)"
|
backup_file="$BACKUP_DIR/root_authorized_keys.backup.$(date +%Y%m%d_%H%M%S)"
|
||||||
cp /root/.ssh/authorized_keys "$backup_file"
|
cp /root/.ssh/authorized_keys "$backup_file"
|
||||||
log "Backed up /root/.ssh/authorized_keys to $backup_file"
|
log "Backed up /root/.ssh/authorized_keys to $backup_file"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user