Page 1 of 1

v- commands not found

Posted: Sat Jul 25, 2020 10:05 pm
by dpeca
If you get error like:

Code: Select all

-bash: v-some-script: command not found
or

Code: Select all

/usr/local/vesta/bin/v-add-letsencrypt-domain: line 23: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-letsencrypt-domain: line 65: check_args: command not found
then probably you just installed myVesta, and you are still in that SSH connection.

In that case (and only in that case) first you must run:

Code: Select all

source /etc/profile
PATH=$PATH:/usr/local/vesta/bin && export PATH
Then you can call v- commands.

The installer (as child process) really does not have a way to alter ENV variables in parent bash... so only way is to start again new SSH connection (that will load new ENV paths and variables), or to execute manually those two commands.