|
@@ -1171,6 +1171,11 @@ random_password=$(gen_pass '32')
|
|
|
# do not allow login into hestiaweb user
|
|
# do not allow login into hestiaweb user
|
|
|
echo hestiaweb:$random_password | sudo chpasswd -e
|
|
echo hestiaweb:$random_password | sudo chpasswd -e
|
|
|
|
|
|
|
|
|
|
+# Add a general group for normal users created by Hestia
|
|
|
|
|
+if [ -z "$(grep ^hestia-users: /etc/group)" ]; then
|
|
|
|
|
+ groupadd --system "hestia-users"
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
# Create user for php-fpm configs
|
|
# Create user for php-fpm configs
|
|
|
/usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
|
|
/usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
|
|
|
# Ensures proper permissions for Hestia service interactions.
|
|
# Ensures proper permissions for Hestia service interactions.
|