privelages fix on bashrc
This commit is contained in:
parent
f0a9c874ed
commit
6a7134147e
@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/bash -i
|
||||||
|
|
||||||
# Get install file
|
# Get install file
|
||||||
wget https://dl.pstmn.io/download/latest/linux64
|
wget https://dl.pstmn.io/download/latest/linux64
|
||||||
|
|
||||||
@ -6,14 +8,13 @@ sudo tar -xvf linux64 -C /usr/bin
|
|||||||
|
|
||||||
# export postman to env table
|
# export postman to env table
|
||||||
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
|
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
|
||||||
echo '# Postman path' >> ~/.tempzshrc
|
sudo -u $SUDO_USER echo '# Postman path' >> ~/.tempzshrc
|
||||||
echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.tempzshrc
|
sudo -u $SUDO_USER echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.tempzshrc
|
||||||
source ~/.tempzshrc
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# always put in bashrc aswell, so that the user can always rely on the standard shell
|
# always put in bashrc aswell, so that the user can always rely on the standard shell
|
||||||
echo '# Postman path' >> ~/.bashrc
|
sudo -u $SUDO_USER echo '# Postman path' >> ~/.bashrc
|
||||||
echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.bashrc
|
sudo -u $SUDO_USER echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.bashrc
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
|
|
||||||
# Create file and set info
|
# Create file and set info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user