Browse Source

Fix PostgreSQL repo

Alexandros Ioannides 5 years ago
parent
commit
ae913ea9e9
1 changed files with 6 additions and 1 deletions
  1. 6 1
      install/upgrade/versions/1.4.0.sh

+ 6 - 1
install/upgrade/versions/1.4.0.sh

@@ -76,4 +76,9 @@ if [ "$MAIL_SYSTEM" == "exim4" ]; then
     fi
     
     $HESTIA/bin/v-restart-mail
-fi
+fi
+
+# Fix PostgreSQL repo
+if [ -f /etc/apt/sources.list.d/postgresql.list ]; then
+    sed -i 's|deb https://apt.postgresql.org/pub/repos/apt/|deb [arch=amd64] https://apt.postgresql.org/pub/repos/apt/|g' /etc/apt/sources.list.d/postgresql.list
+fi