Append to .profile instead of .bash_profile
This commit is contained in:
parent
0da56d6ae1
commit
062f6dfb79
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue