diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-12-14 16:56:44 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-12-14 16:56:44 -0800 |
commit | 2c66f67488d4b5e305a0ad79b9e2cf3591fcdd38 (patch) | |
tree | 9907e1a73b3000d551a0ce6c5207832adbe2a9ec /scripts/install | |
parent | deb5ecade97c1ba0aa9f9e762c8bf2e1f2839c42 (diff) | |
download | vyatta-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-x | scripts/install/install-get-partition | 5 |
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 } |