Skip to content

Commit 47342e1

Browse files
author
Stefano
committed
FOGL-4174: fix moved
Signed-off-by: Stefano <[email protected]>
1 parent 0e6cbbe commit 47342e1

File tree

1 file changed

+3
-3
lines changed
  • packages/Debian/common/DEBIAN

1 file changed

+3
-3
lines changed

packages/Debian/common/DEBIAN/preinst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ if [ "$IS_FLEDGE_INSTALLED" -eq "1" ]
7676
then
7777
echo "Fledge is already installed: this is an upgrade/downgrade."
7878

79-
# Avoid the execution of the function during an upgrade
80-
sed -i -e 's/^remove_unused_files$/#remove_unused_files/' /var/lib/dpkg/info/fledge.postrm
81-
8279
# exit if fledge is running
8380
IS_FLEDGE_RUNNING=$(is_fledge_running)
8481
if [ "$IS_FLEDGE_RUNNING" -eq "1" ]
@@ -87,6 +84,9 @@ then
8784
exit 1
8885
fi
8986

87+
# Avoid the execution of the function during an upgrade
88+
sed -i -e 's/^remove_unused_files$/#remove_unused_files/' /var/lib/dpkg/info/fledge.postrm
89+
9090
# Persist current version in case of upgrade/downgrade
9191
installed_version=`dpkg -s ${PKG_NAME} | grep '^Version:' | awk '{print $2}'`
9292
if [ "${installed_version}" ]

0 commit comments

Comments
 (0)