t/00-startup.t: remove 5-second sleep
[MogileFS-Server.git] / debian / mogstored.preinst
blob003b600b2534e4396759447b789577145a41ab96
1 #!/bin/sh
3 PKG=mogstored
4 DEFAULTFILE=/etc/default/$PKG
6 . /usr/share/debconf/confmodule || exit 0
8 #DEBHELPER#
10 set -e
12 db_get $PKG/runasuser
13 RUNAS=$RET
15 getent passwd $RUNAS >/dev/null || adduser --system $RUNAS
17 if [ ! -e $DEFAULTFILE ]
18 then
19 mkdir -p /etc/default
20 echo "#!/bin/sh" >> $DEFAULTFILE
21 echo "# Defaults for the mogstored package" >> $DEFAULTFILE
22 echo "MOGSTORED_RUNASUSER=$RUNAS" >> $DEFAULTFILE