How to add Path properly?
Posted: Mon Jan 30, 2017 1:49 pm
Hello guys, it's me again panda! :)
Can you please help me with this little script i found on the net? Basically the script does is create a copy of backup to my mega storage account.
The script used is this - https://github.com/By-Vasiliy/VestaCP-S ... ps-to-mega
The problem
sudo /usr/local/vesta/bin/v-sync-backups-to-mega 21 200000 (DOES NOT WORK)
/usr/local/vesta/bin/v-sync-backups-to-mega 21 200000 (DOES WORK)
I think i need to add the path for the mega binaries which is /usr/local/bin and it's not yet included to root's bash profile.
Question:
How do i properly include the path /usr/local/vesta/bin to my bash profile below?
Should i just add PATH=$PATH:/usr/local/bin at the very bottom?
Or under the vesta bin
OR enclose it with export path PATH=$PATH:/usr/local/vesta/bin export path same wit vesta
THANKS!
Can you please help me with this little script i found on the net? Basically the script does is create a copy of backup to my mega storage account.
The script used is this - https://github.com/By-Vasiliy/VestaCP-S ... ps-to-mega
The problem
sudo /usr/local/vesta/bin/v-sync-backups-to-mega 21 200000 (DOES NOT WORK)
/usr/local/vesta/bin/v-sync-backups-to-mega 21 200000 (DOES WORK)
I think i need to add the path for the mega binaries which is /usr/local/bin and it's not yet included to root's bash profile.
Question:
How do i properly include the path /usr/local/vesta/bin to my bash profile below?
Should i just add PATH=$PATH:/usr/local/bin at the very bottom?
Or under the vesta bin
OR enclose it with export path PATH=$PATH:/usr/local/vesta/bin export path same wit vesta
Code: Select all
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
PATH=$PATH:/usr/local/vesta/bin
export PATH