Просмотр исходного кода

Add information regarding "v-command: command not found error" (#3147)

Jaap Marcus 3 лет назад
Родитель
Сommit
4ff49d0feb
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      docs/docs/server-administration/troubleshooting.md

+ 14 - 0
docs/docs/server-administration/troubleshooting.md

@@ -1,5 +1,19 @@
 # Troubleshooting
 
+## Command not found when I try to run a v-command as root
+
+Add to /root/.bashrc the following code:
+
+```bash
+if [ "${PATH#*/usr/local/hestia/bin*}" = "$PATH" ]; then
+	. /etc/profile.d/hestia.sh
+fi
+```
+
+And logout and login again.
+
+After that you are able to run any v-command you want.
+
 ## Disabling “Use IP address allow list for login attempts” via command line
 
 With the introduction of Hestia v1.4.0 we have added certain security features, including the possibility to limit login to certain IP addresses. If your IP address changes, you will not able to login anymore. To disable this feature, run the following commands: