Browse Source

Actual ver command

Ernesto Nicolás Carrea 5 years ago
parent
commit
3500fdd1df
1 changed files with 5 additions and 6 deletions
  1. 5 6
      bin/ver.inc

+ 5 - 6
bin/ver.inc

@@ -1,10 +1,9 @@
 #!/bin/sh
 
 hestia_ver() {
-    echo "Hestia ver $@"
-    echo "Demo of single-level commands"
+    ver=$(osal_kv_read $HESTIA/conf/hestia.conf 'VERSION' 'unknown')
+    echo "Hestia version $ver"
+    echo ""
+    echo "An open-source Linux web server control panel. https://hestiacp.com/"
+    echo -e "\033[0;31m♥\033[0m Made with love & pride by the open-source community from around the world."
 }
-
-# If this files is _not_ being sourced, act immediately
-# (otherise, wait for hestia cli to call the main function)
-[[ $_ == $0 ]] && hestia_web_domain_list $@