Browse Source

Merge pull request #193 from kristankenney/installer-fixes

Fix version/upgrade check command for .deb packaging
Kristan Kenney 7 years ago
parent
commit
59a1a2c658
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/deb/hestia/postinst
  2. 1 1
      src/deb/hestia/preinst

+ 1 - 1
src/deb/hestia/postinst

@@ -18,7 +18,7 @@ fi
 
 # Set new hestia version in conf file
 if [ "$VERSION" != "$version" ]; then
-    sed -I "s/VERSION='$VERSION'/VERSION='$version'/" /usr/local/hestia/conf/hestia.conf
+    sed -i "s/VERSION='$VERSION'/VERSION='$version'/g" /usr/local/hestia/conf/hestia.conf
 fi
 
 exit 0

+ 1 - 1
src/deb/hestia/preinst

@@ -13,5 +13,5 @@ version=$(dpkg -l | awk '$2=="hestia" { print $3 }')
 
 # Set hestia version if different.
 if [ "$VERSION" != "$version" ]; then
-    sed -I "s/VERSION='$VERSION'/VERSION='$version'/" /usr/local/hestia/conf/hestia.conf
+    sed -i "s/VERSION='$VERSION'/VERSION='$version'/g" /usr/local/hestia/conf/hestia.conf
 fi