Skip to content
Snippets Groups Projects
Commit f8061293 authored by Christoph Berg's avatar Christoph Berg :satellite:
Browse files

Chown /var/tmp/postgresql-* to postgres so catversion bump instructions do not...

Chown /var/tmp/postgresql-* to postgres so catversion bump instructions do not require root. Spotted by Greg Smith, thanks.
parent 86d2a3d4
No related branches found
No related tags found
No related merge requests found
Pipeline #696701 passed
postgresql-common (262) UNRELEASED; urgency=medium
* Chown /var/tmp/postgresql-* to postgres so catversion bump instructions do
not require root. Spotted by Greg Smith, thanks.
-- Christoph Berg <myon@debian.org> Wed, 03 Jul 2024 12:34:53 +0200
postgresql-common (261) unstable; urgency=medium
* server/postgresql.mk: Use --enable-dtrace only on Linux.
......
......@@ -217,6 +217,7 @@ preinst_check_catversion()
echo "Saving binaries for PostgreSQL $MAJOR_VER catalog version $OLD_CATVERSION in $VARTMPDIR ..."
mkdir "$VARTMPDIR" # will fail&exit if (potentially rogue) file exists
cp -a /usr/lib/postgresql/$MAJOR_VER/bin /usr/lib/postgresql/$MAJOR_VER/lib "$VARTMPDIR"
chown -R postgres: "$VARTMPDIR" # make catversion bump instructions not require root
fi
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment