make sure $HOME is set
This commit is contained in:
parent
e63f3617b0
commit
2a5c6373cd
2
makeitso
2
makeitso
|
@ -19,5 +19,5 @@ sudo -u authorizedkeysuser mkdir ~authorizedkeysuser/.aws
|
||||||
sudo -u authorizedkeysuser cp config ~authorizedkeysuser/.aws
|
sudo -u authorizedkeysuser cp config ~authorizedkeysuser/.aws
|
||||||
sudo -u authorizedkeysuser cp .credentials ~authorizedkeysuser/.aws/credentials
|
sudo -u authorizedkeysuser cp .credentials ~authorizedkeysuser/.aws/credentials
|
||||||
sudo -u authorizedkeysuser chmod 600 ~authorizedkeysuser/.aws/*
|
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
|
sudo systemctl restart sshd
|
||||||
|
|
Loading…
Reference in New Issue
Block a user