From 2c66f67488d4b5e305a0ad79b9e2cf3591fcdd38 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 14 Dec 2009 16:56:44 -0800 Subject: Ignore errors from chmod/chown if ssh keys don't exist --- scripts/install/install-get-partition | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') 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 } -- cgit v1.2.3