Added pre-installation steps to remove venv and web folder for RPM and Debian.
parent
abea2c7172
commit
fdf7a459eb
|
|
@ -31,6 +31,14 @@ _copy_code
|
|||
echo "Creating the server package..."
|
||||
mkdir "${SERVERROOT}/DEBIAN"
|
||||
|
||||
echo "Creating preinst script..."
|
||||
cat << EOF > "${SERVERROOT}/DEBIAN/preinst"
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf /usr/pgadmin4/venv
|
||||
rm -rf /usr/pgadmin4/web
|
||||
EOF
|
||||
|
||||
cat << EOF > "${SERVERROOT}/DEBIAN/control"
|
||||
Package: ${APP_NAME}-server
|
||||
Version: ${APP_LONG_VERSION}
|
||||
|
|
|
|||
|
|
@ -67,6 +67,10 @@ Requires: ${PYTHON_BINARY}, libpq5, krb5-libs
|
|||
%description
|
||||
The core server package for pgAdmin. pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
|
||||
|
||||
%pre
|
||||
rm -rf /usr/pgadmin4/venv
|
||||
rm -rf /usr/pgadmin4/web
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
|
|
|
|||
Loading…
Reference in New Issue