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

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

@@ -1046,6 +1046,12 @@ echo "[ * ] Configuring system settings..."
 
 # Create user for php-fpm configs
 /usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
+
+# Add a general group for normal users created by Hestia
+if [ -z "$(grep ^hestia-users: /etc/group)" ]; then
+	groupadd --system "hestia-users"
+fi
+
 # Ensures proper permissions for Hestia service interactions.
 /usr/sbin/adduser hestiamail hestia-users
 

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

@@ -1028,6 +1028,12 @@ echo "[ * ] Configuring system settings..."
 # Create user for php-fpm configs
 /usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
 # Ensures proper permissions for Hestia service interactions.
+
+# Add a general group for normal users created by Hestia
+if [ -z "$(grep ^hestia-users: /etc/group)" ]; then
+	groupadd --system "hestia-users"
+fi
+
 /usr/sbin/adduser hestiamail hestia-users
 
 # Enable SFTP subsystem for SSH