-
Notifications
You must be signed in to change notification settings - Fork 94
/
plugin-defaults.plugin.sh
executable file
·32 lines (27 loc) · 1.14 KB
/
plugin-defaults.plugin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#@IgnoreInspection BashAddShebang
# Copyright (c) 2015 EMC Corporation
# All Rights Reserved
#
# This software contains the intellectual property of EMC Corporation
# or is licensed to EMC Corporation from third parties. Use of this
# software and the intellectual property contained therein is expressly
# limited to the terms and conditions of the License Agreement under which
# it is provided by or on behalf of EMC.
# Plugin defaults, functions can be overridden if 'unset' first:
os_supported=false
# Caller symlinks
unset symlink_scripts
symlink_scripts() {
symlinks="ecsdeploy catfacts enter pingnodes step1 step2 island-step1 island-step2 update_deploy update_image rebuild_image inventory testbook videploy"
symlinks="${symlinks} island-step3 ecsconfig ecsremove"
mkdir -p "${HOME}/bin"
for l in $symlinks; do
ln -s "${root}/ui/run.sh" "${HOME}/bin/$l" 2>/dev/null
done
}
unset update_path_in_bashrc
update_path_in_bashrc() {
log "sed error is OK here if the proxy config file does not yet exist."
sudo sed -i -e '/PATH/d' $HOME/.bashrc
echo 'export PATH=$PATH:$HOME/.local/bin:$HOME/bin' >> $HOME/.bashrc
}