We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21a2ead commit 1c03e24Copy full SHA for 1c03e24
bin/v-add-user
@@ -1,6 +1,6 @@
1
#!/bin/bash
2
# info: add system user
3
-# options: USER PASSWORD EMAIL [PACKAGE] [NAME]
+# options: USER PASSWORD EMAIL [PACKAGE] [NAME] [LASTNAME]
4
# labels:
5
#
6
# example: v-add-user admin2 P4$$w@rD bgates@aol.com
@@ -18,7 +18,10 @@ password=$2; HIDE=2
18
email=$3
19
package=${4-default}
20
name=$5
21
-
+# Last name has been added for backward compatibility with WHMCS / Blesta VestaCP Plugins
22
+if [ ! -z "$6" ]; then
23
+ name="$name $6";
24
+fi
25
# Includes
26
source $HESTIA/func/main.sh
27
source $HESTIA/conf/hestia.conf
0 commit comments