aboutsummaryrefslogtreecommitdiff
path: root/debian/mauvealert-server.postinst
blob: 3d1c09a7a5702b1241102f3fddfee4e1c68efc52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

set -e

##
# Add a mauve user
##
RUNASUSER=mauvealert

adduser --system --no-create-home --home /nonexistent $RUNASUSER > /dev/null

##
# Add default directories
##
for i in log lib ; do
  mkdir -p /var/$i/mauvealert
  chown -R $RUNASUSER:nogroup /var/$i/mauvealert
done

#DEBHELPER#