aboutsummaryrefslogtreecommitdiff
path: root/scripts/test-pow-tls.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test-pow-tls.py')
0 files changed, 0 insertions, 0 deletions
Rob Austein <sra@hactrn.net> 2016-02-15 07:51:40 +0000 committer Rob Austein <sra@hactrn.net> 2016-02-15 07:51:40 +0000 Checkpoint while shuffling stuff around for new installation scheme.' href='/sra/rpki.net/commit/rp/rcynic/rules.linux.mk?id=def95e42fda9a9e45bdf4f40a6ecb93b644dbf0b'>def95e42
b7c329cb
def95e42
b7c329cb
def95e42
b7c329cb


f2be7255
fa8491ad
def95e42
b7c329cb
def95e42
d3cb2a11
b7c329cb
def95e42
b7c329cb
def95e42
b7c329cb


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

      
                              
                                                    
              

                                                                                   
              
                                                    
              
                                                              


                                                       
                        
                                                                                                                                                       
                                                   
              
                                                                                 
                                                                                                                                             
              
                                                  
              
                                                            


                                                       
# $Id$

install-user-and-group: .FORCE
	@if getent group ${RPKI_GROUP} >/dev/null; \
	then \
	    echo "You already have a group \"${RPKI_GROUP}\", so I will use it."; \
	elif /usr/sbin/groupadd ${RPKI_GROUP}; \
	then \
	    echo "Added group \"${RPKI_GROUP}\"."; \
	else \
	    echo "Adding group \"${RPKI_GROUP}\" failed..."; \
	    echo "Please create it, then try again."; \
	    exit 1; \
	fi
	@nogroup='-N'; \
	if test -f /etc/redhat-release; then read vendor release version < /etc/redhat-release; if test $$vendor = CentOS; then nogroup='-n'; fi; fi; \
	if getent passwd ${RPKI_USER} >/dev/null; \
	then \
	    echo "You already have a user \"${RPKI_USER}\", so I will use it."; \
	elif /usr/sbin/useradd -g ${RPKI_GROUP} -M $$nogroup -d "${DESTDIR}${RCYNIC_DIR}" -s /sbin/nologin -c "${RPKI_GECOS}" ${RPKI_USER}; \
	then \
	    echo "Added user \"${RPKI_USER}\"."; \
	else \
	    echo "Adding user \"${RPKI_USER}\" failed..."; \
	    echo "Please create it, then try again."; \
	    exit 1; \
	fi