Date: Mon, 5 Mar 2018 10:22:20 +0000 (UTC) From: TAKATSU Tomonari <tota@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r463639 - head/japanese/mailman/files Message-ID: <201803051022.w25AMKXE078902@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tota Date: Mon Mar 5 10:22:20 2018 New Revision: 463639 URL: https://svnweb.freebsd.org/changeset/ports/463639 Log: - Remove unnecessary line from files/pkg-deinstall.in - Fix files/pkg-install.in Pointed out by: riggs@ MFH: 2018Q1 Modified: head/japanese/mailman/files/pkg-deinstall.in (contents, props changed) head/japanese/mailman/files/pkg-install.in (contents, props changed) Modified: head/japanese/mailman/files/pkg-deinstall.in ============================================================================== --- head/japanese/mailman/files/pkg-deinstall.in Mon Mar 5 09:58:55 2018 (r463638) +++ head/japanese/mailman/files/pkg-deinstall.in Mon Mar 5 10:22:20 2018 (r463639) @@ -40,7 +40,6 @@ POST-DEINSTALL) echo "---> Starting post-deinstall script" # try to kill all empty directories - necessary on pkg_add-based systems - find "%%MAILMANDIR%%" -depth -type d -exec rmdir '{}' + >/dev/null 2>&1 || : if [ -d "%%MAILMANDIR%%" ]; then echo '---> %%MAILMANDIR%% is not empty - this installation may have active lists!' ls -lRB "%%MAILMANDIR%%" | head -n200 || : Modified: head/japanese/mailman/files/pkg-install.in ============================================================================== --- head/japanese/mailman/files/pkg-install.in Mon Mar 5 09:58:55 2018 (r463638) +++ head/japanese/mailman/files/pkg-install.in Mon Mar 5 10:22:20 2018 (r463639) @@ -16,6 +16,14 @@ POST-INSTALL) echo "---> Running update" + for DIR in logs archives lists locks data spam qfiles \ + archives/private archives/public + do + if [ ! -e "%%MAILMANDIR%%/$DIR" ]; then + /bin/mkdir -p "%%MAILMANDIR%%/$DIR" + fi + done + LC_ALL=C "%%MAILMANDIR%%/bin/update" || exit 1 echo "---> Checking crontab(5) file for user \"%%USER%%\""
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803051022.w25AMKXE078902>