debian/postinst
changeset 38 5c262b6a659d
parent 37 1cdaa46b79c5
equal deleted inserted replaced
37:1cdaa46b79c5 38:5c262b6a659d
    20 
    20 
    21 case "$1" in
    21 case "$1" in
    22     configure)
    22     configure)
    23 
    23 
    24 	{
    24 	{
    25 	    insserv ha-hostname
    25 	    update-rc.d ha-hostname defaults >/dev/null
    26 	    insserv ha-config
    26 	    update-rc.d ha-config defaults >/dev/null
    27 
    27 
    28 	    test -f /etc/ha-sync/id_rsa || {
    28 	    test -f /etc/ha-sync/id_rsa || {
    29 		    ssh-keygen -N "" -C "ha-sync@`hostname`" -f /etc/ha-sync/id_rsa >&2
    29 		    ssh-keygen -N "" -C "ha-sync@`hostname`" -f /etc/ha-sync/id_rsa >&2
    30 		    chmod u=r,go= /etc/ha-sync/id_rsa
    30 		    chmod u=r,go= /etc/ha-sync/id_rsa
    31 	    }
    31 	    }