aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-04-30 14:40:11 +0100
committerLouise Crow <louise.crow@gmail.com>2015-04-30 14:40:11 +0100
commitf703d105f470f0494db1a9145efcdb6332e81cdc (patch)
treef68de5f289e385992316d8fbc30bfa78f49251cb /script
parent9cd7cc01752bc41163a98781346fc0e38cf399c2 (diff)
Add the site user to the 'adm' group.
This is so that they can access mail log files. adm group members have access to read log files in /var/log
Diffstat (limited to 'script')
-rwxr-xr-xscript/site-specific-install.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/site-specific-install.sh b/script/site-specific-install.sh
index ac2280e72..9358103b2 100755
--- a/script/site-specific-install.sh
+++ b/script/site-specific-install.sh
@@ -180,6 +180,9 @@ postfix reload
install_website_packages
+# Give the unix user membership of the adm group so that they can read the mail log files
+usermod -a -G adm "$UNIX_USER"
+
# Make the PostgreSQL user a superuser to avoid the irritating error:
# PG::Error: ERROR: permission denied: "RI_ConstraintTrigger_16564" is a system trigger
# This is only needed for loading the sample data, so the superuser