Sha256: a491dac9373499fa2bc83ff20f8c45bebd22ed16211268dbfdc1a7023e5d889a

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

#!/bin/bash

if [[ ${UID} != 0 ]]; then
    echo 'Run this script as root!'
    exit 1
fi

postfix upgrade-configuration
postfix check

newaliases

if [[ $(which rc-service) ]]; then
    rc-service postfix restart
elif [[ $(which systemctl) ]]; then
     systemctl restart postfix
else
    echo 'Unable to determine init system! Restart postfix manually.'
fi

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
danarchy_deploy-0.2.11 templates/services/postfix/localmail.initial_setup.sh
danarchy_deploy-0.2.10 templates/services/postfix/localmail.initial_setup.sh
danarchy_deploy-0.2.9 templates/services/postfix/localmail.initial_setup.sh
danarchy_deploy-0.2.8 templates/services/postfix/localmail.initial_setup.sh