v- commands not found

Post Reply
User avatar
myVesta
Site Admin
Posts: 946
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 9 times
Been thanked: 6 times

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 solution is to start again new SSH connection (that will load new ENV paths and variables) or to execute manually those two above commands.

Tags:
lasaka
Posts: 3
Joined: Tue Sep 10, 2024 4:12 pm

Shaving for later reference
Post Reply