• Travis Cross's avatar
    Move chown of /etc/freeswitch/tls to postinst · 16d0538f
    Travis Cross 提交于
    Doing a chown of something in /etc/ as part of a systemd service file
    is totally broken.  It's far too large a sledgehammer to point at /etc
    here.  Someone may legitimately not be using /etc/freeswitch/tls in
    his configuration, in which case this chown would fail and cause FS to
    fail to start.  Or someone may legitimately need /etc/freeswitch/tls
    to have different ownership, in which case we would clobber it here.
    
    The right thing to do is to create this directory in the
    postinst (which we already are, assuming there is not an existing
    configuration) and then perform the chown of it at the same time.
    
    FS-7697
    16d0538f
freeswitch.postinst 1.1 KB