From d5c2d675625e58580e124f8b0b6872fb886a3be1 Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Mon, 20 Mar 2023 13:01:50 -0400 Subject: [PATCH] Fix bash_aliases in the SSME. --- install.sh | 1 + management/bash_aliases | 11 +++++++++++ management/bash_profile | 13 ++++--------- 3 files changed, 16 insertions(+), 9 deletions(-) create mode 100755 management/bash_aliases mode change 100644 => 100755 management/bash_profile diff --git a/install.sh b/install.sh index 5608c72..4af90d0 100755 --- a/install.sh +++ b/install.sh @@ -150,6 +150,7 @@ while lxc exec ss-mgmt -- [ ! -f /var/lib/cloud/instance/boot-finished ]; do done # do some other preparations for user experience +lxc file push ./management/bash_aliases ss-mgmt/home/ubuntu/.bash_aliases lxc file push ./management/bash_profile ss-mgmt/home/ubuntu/.bash_profile lxc file push ./management/bashrc ss-mgmt/home/ubuntu/.bashrc lxc file push ./management/motd ss-mgmt/etc/update-motd.d/sovereign-stack diff --git a/management/bash_aliases b/management/bash_aliases new file mode 100755 index 0000000..b29b37a --- /dev/null +++ b/management/bash_aliases @@ -0,0 +1,11 @@ +#!/bin/bash + +alias ss-deploy='/home/ubuntu/sovereign-stack/deployment/project/deploy.sh $@' +alias ss-remote='/home/ubuntu/sovereign-stack/deployment/remote.sh $@' +alias ss-show='/home/ubuntu/sovereign-stack/deployment/show.sh $@' +alias ss-reset='/home/ubuntu/sovereign-stack/deployment/reset.sh $@' +alias ss-update='/home/ubuntu/sovereign-stack/deployment/update.sh $@' +alias ss-destroy='/home/ubuntu/sovereign-stack/deployment/destroy.sh $@' +alias ss-help='cat /home/ubuntu/sovereign-stack/deployment/help.txt' + +alias ll='ls -lah' diff --git a/management/bash_profile b/management/bash_profile old mode 100644 new mode 100755 index b29b37a..a49f912 --- a/management/bash_profile +++ b/management/bash_profile @@ -1,11 +1,6 @@ #!/bin/bash -alias ss-deploy='/home/ubuntu/sovereign-stack/deployment/project/deploy.sh $@' -alias ss-remote='/home/ubuntu/sovereign-stack/deployment/remote.sh $@' -alias ss-show='/home/ubuntu/sovereign-stack/deployment/show.sh $@' -alias ss-reset='/home/ubuntu/sovereign-stack/deployment/reset.sh $@' -alias ss-update='/home/ubuntu/sovereign-stack/deployment/update.sh $@' -alias ss-destroy='/home/ubuntu/sovereign-stack/deployment/destroy.sh $@' -alias ss-help='cat /home/ubuntu/sovereign-stack/deployment/help.txt' - -alias ll='ls -lah' +# this wires up the aliases for remote ssh sessions. +if [ -f ~/.bashrc ]; then + . ~/.bashrc +fi \ No newline at end of file