X-Git-Url: http://www.privoxy.org/gitweb/index.html?a=blobdiff_plain;f=pkg%20resources%2Fsingle-binary%20scripts%2Fpostupgrade;h=c42b9738eb838fb600db7b8d9f02470fbe6db8c8;hb=45827f4223261f345af0da7b1256d6e8938142c4;hp=f228b50a20f98a51ad4d8b7c47d2f66882ff66e0;hpb=48f0e54fa961decda0acf0f695e21bc5dbcb71f1;p=OSXPackageBuilder.git diff --git a/pkg resources/single-binary scripts/postupgrade b/pkg resources/single-binary scripts/postupgrade index f228b50..c42b973 100755 --- a/pkg resources/single-binary scripts/postupgrade +++ b/pkg resources/single-binary scripts/postupgrade @@ -28,7 +28,8 @@ # USA # # Modification : If you modify this file please consider whether your -# changes ought to be passed back to the macsetup module. +# changes ought to be passed back to the OSXPackageBuilder +# module. # # This postinstall script: @@ -46,8 +47,8 @@ logfile='/var/privoxy_installation.log' # 1. Move config files into place, setting ownership and permissions, respecting any existing user config # for i in default.action default.filter match-all.action config trust user.action user.filter templates; do - if [ "$i" = "default.action" ] || [ "$i" = "default.filter" ] || [ "$i" = "match-all.action" ] ; then - # for the files a Mac user is very unlikely to have changed, overwrite existing, older versions + if [ "$i" = "default.action" ] || [ "$i" = "default.filter" ] ; then + # for the files that the end user should not edit, overwrite existing, older versions echo 'Installing config file (overwriting existing file if present):' $i >> ${logfile} /bin/rm -f /usr/local/etc/privoxy/$i /usr/bin/install -c -m 0664 -o privoxy -g privoxy /usr/local/etc/privoxy/vanilla/$i /usr/local/etc/privoxy || exit 1; @@ -129,8 +130,8 @@ case "${darwin_major_rel_num}" in ;; esac -# 6. Open the readme.rtf file for the user to read -/usr/bin/su $USER -c "/usr/bin/open /Applications/Privoxy/readme.rtfd" +# 6. Open the readme.pdf file for the user to read +/usr/bin/su $USER -c "/usr/bin/open /Applications/Privoxy/readme.pdf" /bin/mv ${logfile} /Applications/Privoxy/install.log