Added backslash to quote $ variable substitution in preinst script.

This commit is contained in:
Akshay Joshi 2023-04-11 10:42:19 +05:30
parent af13d6da16
commit 290e160e13
2 changed files with 2 additions and 10 deletions

View File

@ -37,11 +37,7 @@ 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}
fi
done
cd /usr/pgadmin4/web && rm -rf \$(ls -A -I config_local.py)
fi
EOF

View File

@ -70,11 +70,7 @@ The core server package for pgAdmin. pgAdmin is the most popular and feature ric
%pre
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}
fi
done
cd /usr/pgadmin4/web && rm -rf \$(ls -A -I config_local.py)
fi
%build