From f8ecb7e4870375ddd59fe3e1058ab595cad5318a Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Mon, 20 May 2019 19:22:59 +0200
Subject: [PATCH] don't ask questions when upgrading minerva

---
 CHANGELOG                     | 6 ++++++
 debian/template/config        | 3 +++
 frontend-js/package-lock.json | 4 +++-
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index 212efd0153..2e823dbe81 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,9 @@
+minerva (14.0.0~alpha.1) unstable; urgency=low
+  * Feature: log4j is replaced with log4j2 logging mechanism (#291)
+  * Feature removal: BioCompendium annotator removed (#32)
+
+ -- Piotr Gawron <piotr.gawron@uni.lu>  Thu, 16 May 2019 15:00:00 +0200
+
 minerva (14.0.0~alpha.0) unstable; urgency=low
   * Feature: log4j is replaced with log4j2 logging mechanism (#291)
   * Feature removal: BioCompendium annotator removed (#32)
diff --git a/debian/template/config b/debian/template/config
index b8549e0e4b..d2a4aed6c2 100644
--- a/debian/template/config
+++ b/debian/template/config
@@ -13,6 +13,7 @@ then
   mkdir /etc/minerva/
 fi
 
+
 if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
         . /usr/share/dbconfig-common/dpkg/config.pgsql
         DB_HOST="localhost"
@@ -28,6 +29,8 @@ if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
           DB_DATABASE_NAME=`cat $DB_PROPERTIES_FILE |grep "uri" |cut -f4 -d"/"`
           DB_USERNAME=`cat $DB_PROPERTIES_FILE |grep "username" |cut -f2 -d"="`
           DB_PASSWORD=`cat $DB_PROPERTIES_FILE |grep "password" |cut -f2 -d"="`
+          db_set minerva/dbconfig-install true
+          db_fset minerva/dbconfig-install seen true
         fi
         echo "dbserver=$DB_HOST" > /etc/minerva/old.sh
         echo "dbport=$DB_PORT" >> /etc/minerva/old.sh
diff --git a/frontend-js/package-lock.json b/frontend-js/package-lock.json
index 17af1d3c74..2e2d590dfa 100644
--- a/frontend-js/package-lock.json
+++ b/frontend-js/package-lock.json
@@ -87,6 +87,7 @@
       "version": "0.1.4",
       "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz",
       "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=",
+      "optional": true,
       "requires": {
         "kind-of": "^3.0.2",
         "longest": "^1.0.1",
@@ -3309,7 +3310,8 @@
     "longest": {
       "version": "1.0.1",
       "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz",
-      "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc="
+      "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=",
+      "optional": true
     },
     "loose-envify": {
       "version": "1.3.1",
-- 
GitLab