summaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-14 16:56:44 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-14 16:56:44 -0800
commit2c66f67488d4b5e305a0ad79b9e2cf3591fcdd38 (patch)
tree9907e1a73b3000d551a0ce6c5207832adbe2a9ec /scripts/install
parentdeb5ecade97c1ba0aa9f9e762c8bf2e1f2839c42 (diff)
downloadvyatta-cfg-system-2c66f67488d4b5e305a0ad79b9e2cf3591fcdd38.tar.gz
vyatta-cfg-system-2c66f67488d4b5e305a0ad79b9e2cf3591fcdd38.zip
Ignore errors from chmod/chown if ssh keys don't exist
Diffstat (limited to 'scripts/install')
-rwxr-xr-xscripts/install/install-get-partition5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition
index 9eebc307..3e35f4b1 100755
--- a/scripts/install/install-get-partition
+++ b/scripts/install/install-get-partition
@@ -457,9 +457,8 @@ save_old_keys() {
fi
# reset modes on keys (should already be set)
- chmod 600 /mnt/ssh/*_key
- chmod 644 /mnt/ssh/*.pub
- chown root /mnt/ssh/*
+ chmod 600 /mnt/ssh/*_key 2>&1
+ chmod 644 /mnt/ssh/*.pub 2>&1
fi
}