mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
- add missing reload part into pkg-install
This commit is contained in:
parent
c6a9267b5c
commit
d15a2cc7cc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=409553
1 changed files with 16 additions and 0 deletions
|
@ -129,6 +129,20 @@ install_mailer_conf() {
|
||||||
install -m 644 ${MC_TEMPLATE} ${mailerconf}
|
install -m 644 ${MC_TEMPLATE} ${mailerconf}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ==============================================================================
|
||||||
|
# Run postfix reload
|
||||||
|
# This is a candidate for a dedicated pkg-post-upgrade script, but it seems
|
||||||
|
# this not fully implemented in pkg :(see upstream PR 941)
|
||||||
|
# ==============================================================================
|
||||||
|
try_reload(){
|
||||||
|
${PREFIX}/sbin/postfix status 2>/dev/null
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
${PREFIX}/sbin/postfix reload
|
||||||
|
else
|
||||||
|
echo "postfix not running"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Run postfix post-install to fix permissions and new config values
|
# Run postfix post-install to fix permissions and new config values
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
@ -152,6 +166,7 @@ if [ -f "${MC_BASE}" ]; then
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
show_activated_msg ${MC_BASE}
|
show_activated_msg ${MC_BASE}
|
||||||
cmp_mailer ${MC_LOCALBASE} || install_mailer_conf ${MC_LOCALBASE}
|
cmp_mailer ${MC_LOCALBASE} || install_mailer_conf ${MC_LOCALBASE}
|
||||||
|
try_reload
|
||||||
else
|
else
|
||||||
cmp_mailer ${MC_LOCALBASE} || install_choise ${MC_LOCALBASE}
|
cmp_mailer ${MC_LOCALBASE} || install_choise ${MC_LOCALBASE}
|
||||||
fi
|
fi
|
||||||
|
@ -161,6 +176,7 @@ if [ -f "${MC_BASE}" ]; then
|
||||||
install_choise ${MC_BASE}
|
install_choise ${MC_BASE}
|
||||||
else
|
else
|
||||||
show_activated_msg ${MC_BASE}
|
show_activated_msg ${MC_BASE}
|
||||||
|
try_reload
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue