One more attempt to fix preinst script for RPM and Debian

pull/6121/head
Akshay Joshi 2023-04-10 19:36:29 +05:30
parent 6b31fc4552
commit af13d6da16
2 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@ cat << EOF > "${SERVERROOT}/DEBIAN/preinst"
rm -rf /usr/pgadmin4/venv
if [ -d /usr/pgadmin4/web ]; then
for f in /usr/pgadmin4/web/*; do
if [ "$f" != "/usr/pgadmin4/web/config_local.py" ]; then
rm -rf $f
if [ "${f}" != "/usr/pgadmin4/web/config_local.py" ]; then
rm -rf ${f}
fi
done
fi

View File

@ -71,8 +71,8 @@ The core server package for pgAdmin. pgAdmin is the most popular and feature ric
rm -rf /usr/pgadmin4/venv
if [ -d /usr/pgadmin4/web ]; then
for f in /usr/pgadmin4/web/*; do
if [ "$f" != "/usr/pgadmin4/web/config_local.py" ]; then
rm -rf $f
if [ "${f}" != "/usr/pgadmin4/web/config_local.py" ]; then
rm -rf ${f}
fi
done
fi