Jaap Marcus 1 год назад
Родитель
Сommit
7aa3ef454b
2 измененных файлов с 10 добавлено и 0 удалено
  1. 5 0
      install/hst-install-debian.sh
  2. 5 0
      install/hst-install-ubuntu.sh

+ 5 - 0
install/hst-install-debian.sh

@@ -1171,6 +1171,11 @@ random_password=$(gen_pass '32')
 # do not allow login into hestiaweb user
 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
 /usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
 # Ensures proper permissions for Hestia service interactions.

+ 5 - 0
install/hst-install-ubuntu.sh

@@ -1168,6 +1168,11 @@ random_password=$(gen_pass '32')
 # do not allow login into hestiaweb user
 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
 /usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
 # Ensures proper permissions for Hestia service interactions.