~libravatar/libravatar/master

« back to all changes in this revision

Viewing changes to debian/libravatar-master.postinst

  • Committer: Francois Marier
  • Date: 2012-09-29 00:09:04 UTC
  • Revision ID: git-v1:2c5259dfaf4a06524cfed192dea059424c292d53
Pull the deployment code into a separate libravatar-deployment package (LP: #1049622)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
 
# postinst script for libravatar-master
3
2
#
4
3
# see: dh_installdeb(1)
5
4
 
24
23
    configure)
25
24
        adduser --system --quiet --disabled-login --shell /usr/bin/rssh --no-create-home --home ${MASTER_ROOT} --gecos 'Libravatar Mirror Master,,,' libravatar-master || true
26
25
 
27
 
        addgroup --system --quiet libravatar-deployment || true
28
 
        chmod 440 /etc/sudoers.d/libravatar-deployment
29
 
 
30
26
        mkdir -p ${MASTER_ROOT}/.ssh/
31
27
        touch ${MASTER_ROOT}/.ssh/authorized_keys
32
28
        chown libravatar-master ${MASTER_ROOT}/.ssh/authorized_keys