Added backslash to quote $ variable substitution in preinst script.

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

No files matched your search

+1 -5
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