From 2a5c6373cd23c4c68ad1dd4501c5c99ec9b30208 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 28 Jan 2020 17:10:24 -0800 Subject: [PATCH] make sure $HOME is set --- makeitso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makeitso b/makeitso index 6c1583e..e73836a 100755 --- a/makeitso +++ b/makeitso @@ -19,5 +19,5 @@ sudo -u authorizedkeysuser mkdir ~authorizedkeysuser/.aws sudo -u authorizedkeysuser cp config ~authorizedkeysuser/.aws sudo -u authorizedkeysuser cp .credentials ~authorizedkeysuser/.aws/credentials sudo -u authorizedkeysuser chmod 600 ~authorizedkeysuser/.aws/* -sudo -u authorizedkeysuser sh -c 'command -v aws > /dev/null 2>&1 || pip install --user awscli' +sudo -H -u authorizedkeysuser sh -c 'command -v aws > /dev/null 2>&1 || pip install --user awscli' sudo systemctl restart sshd