mirror of https://github.com/MISP/MISP
Merge pull request #5623 from stricaud/2.4
version 2.4.221 + ask about baseurl during package installationpull/5628/head
commit
ee0f708187
|
@ -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,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
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
misp_2.4.220-1_all.deb Web optional
|
||||
misp_2.4.220-1_amd64.buildinfo Web optional
|
|
@ -1,3 +0,0 @@
|
|||
misc:Recommends=apache2 ( >= 2.4.6-4~ ) | httpd
|
||||
misc:Depends=debconf (>= 0.5) | debconf-2.0
|
||||
misc:Pre-Depends=
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue