* Adding baseurl as a question when finalizing the package installation.

* bump to version 2.4.221
pull/5623/head
Sebastien Tricaud 2020-02-12 14:46:22 -08:00
parent 413399611e
commit 6437d2d8f5
6 changed files with 22 additions and 10 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
misp (2.4.221-1) UNRELEASED; urgency=low
* Bump to release 2.4.221
-- Sebastien Tricaud <sebastien.tricaud@devo.com> Wed, 12 Feb 2020 14:44:35 -0800
misp (2.4.220-1) UNRELEASED; urgency=low
* First package of MISP

2
debian/control vendored
View File

@ -2,7 +2,7 @@ Source: misp
Maintainer: Sebastien Tricaud <sebastien.tricaud@devo.com>
Section: Web
Priority: optional
Standards-Version: 2.4.220
Standards-Version: 2.4.221
Build-Depends: debhelper (>= 11), dh-apache2
Homepage: http://misp.software
Vcs-Browser: https://github.com/misp/misp

2
debian/files vendored
View File

@ -1,2 +0,0 @@
misp_2.4.220-1_all.deb Web optional
misp_2.4.220-1_amd64.buildinfo Web optional

View File

@ -1,3 +0,0 @@
misc:Recommends=apache2 ( >= 2.4.6-4~ ) | httpd
misc:Depends=debconf (>= 0.5) | debconf-2.0
misc:Pre-Depends=

13
debian/postinst vendored
View File

@ -48,6 +48,8 @@ if [ "$1" = "configure" ] ; then
MISPDBUSER=$RET
db_get misp/mariadb_setmisppwd
MISPDBUSERPWD=$RET
db_get misp/base_url
BASEURL=$RET
db_stop
mysql -h$HOST -uroot -p$ROOTPWD -e "CREATE USER IF NOT EXISTS '$MISPDBUSER'@'localhost' IDENTIFIED BY '$MISPDBUSERPWD';"
@ -67,8 +69,11 @@ if [ "$1" = "configure" ] ; then
sed -i -E "s/'password'\s=>\s'db password'/'password' => '$MISPDBUSERPWD'/" /usr/share/misp/app/Config/database.php
sed -i -E "s/'database'\s=>\s'misp'/'database' => '$MISPDB'/" /usr/share/misp/app/Config/database.php
cd /usr/share/misp/app
composer require resque/php-resque
# No composer.json in current directory, do you want to use the one at /usr/share/misp/app? [Y,n]? Y
echo "{\"major\":2, \"minor\":4, \"hotfix\":220}" > /usr/share/misp/VERSION.json
composer require resque/php-resque || true
# No composer.json in current directory, do you want to use the one at /usr/share/misp/app? [Y,n]? Y
sudo -u www-data /usr/share/misp/app/Console/cake admin setSetting MISP.baseurl "$BASEURL"
echo "{\"major\":2, \"minor\":4, \"hotfix\":221}" > /usr/share/misp/VERSION.json
fi

6
debian/templates vendored
View File

@ -33,3 +33,9 @@ Template: misp/mariadb_setmisppwd
Type: password
Description: Set your MariaDB MISP user password
Template: misp/base_url
Type: string
Default: http://127.0.0.1
Description: MISP Base URL.
The Base URL is where MISP points to when it redirects to another page.