summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xuser-init6
1 files changed, 6 insertions, 0 deletions
diff --git a/user-init b/user-init
index 5e9018c..03c8fe8 100755
--- a/user-init
+++ b/user-init
@@ -120,6 +120,12 @@ for user in $USERS; do
chmod ug=rw,o= /var/spool/mail/$user
fi
+ # MySQL handling
+ if [ -f $HOME/.my.cnf ]; then
+ chown $user: $HOME/.my.cnf
+ chmod 0600 $HOME/.my.cnf
+ fi
+
# Mac dir permissions
if [ -d $HOME/$mac ]; then
chown -R $user: $HOME/$mac