deb: install a sample sogo.conf in /etc/sogo

While there, replace mkdir + cp combo with 'install'
This commit is contained in:
Jean Raby
2013-04-10 16:20:47 -04:00
parent e24eb10c4f
commit 4da1e41d93
8 changed files with 28 additions and 16 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ if [ "$1" == "install" ] || [ "$1" == "upgrade" ]; then
useradd -d /var/lib/sogo -g sogo -c "SOGo daemon" -s /usr/sbin/nologin -M -r sogo
fi
# create mandatory dirs and enforce owner/perms
# create mandatory dirs and enforce owner+mode
for dir in lib log run spool; do
install -m 750 -o sogo -g sogo -d /var/$dir/sogo
done