Mogstored/SideChannelClient: remove circular reference
[MogileFS-Server.git] / debian / mogilefsd.preinst
blob9688ee4eb955f95ca5681cd593e30b3714eec5ec
1 #!/bin/sh
3 PKG=mogilefsd
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 mogilefsd package" >> $DEFAULTFILE
22 echo "MOGILEFSD_RUNASUSER=$RUNAS" >> $DEFAULTFILE