Append to .profile instead of .bash_profile

This commit is contained in:
Sonny Bakker 2017-08-24 12:23:51 +02:00
parent 0da56d6ae1
commit 062f6dfb79

View file

@ -18,7 +18,7 @@ add_ssh() {
sed -i 's/^#Port .*/Port '"$PORT"'/' $CONTAINER_PATH/etc/ssh/sshd_config
sed -i 's/^#PermitRootLogin .*/PermitRootLogin yes/' $CONTAINER_PATH/etc/ssh/sshd_config
touch $CONTAINER_PATH/root/.bash_profile
touch $CONTAINER_PATH/root/.profile
cat <<- 'EOF' > $CONTAINER_PATH/root/.bash_profile
# Start ssh-agent and add keys in ~/.ssh directory
# Should only be used without a desktop manager