fix: [installer] -ne (== NOT EQUAL != NOT EXIST Grr...)

pull/4152/head
Steve Clement 2019-02-08 19:33:19 +09:00
parent d4b817a938
commit 78a175795a
2 changed files with 7 additions and 7 deletions

View File

@ -739,7 +739,7 @@ updateGOWNT () {
# Generate GnuPG key
setupGnuPG () {
if [ -ne $PATH_TO_MISP/.gnupg ]; then
if [ ! -d $PATH_TO_MISP/.gnupg ]; then
# The email address should match the one set in the config.php
# set in the configuration menu in the administration menu configuration file
echo "%echo Generating a default key
@ -1202,6 +1202,9 @@ installMISPonKali () {
chown -R www-data:www-data $PATH_TO_MISP/app/Config
chmod -R 750 $PATH_TO_MISP/app/Config
debug "Generating rc.local"
genRCLOCAL
debug "Setting up GnuPG"
setupGnuPG
@ -1213,9 +1216,6 @@ installMISPonKali () {
debug "Update: Galaxies, Template Objects, Warning Lists, Notice Lists, Taxonomies"
updateGOWNT
debug "Generating rc.local"
genRCLOCAL
gitPullAllRCLOCAL
debug "Installing misp-modules"

View File

@ -322,6 +322,9 @@ installMISPonKali () {
chown -R www-data:www-data $PATH_TO_MISP/app/Config
chmod -R 750 $PATH_TO_MISP/app/Config
debug "Generating rc.local"
genRCLOCAL
debug "Setting up GnuPG"
setupGnuPG
@ -333,9 +336,6 @@ installMISPonKali () {
debug "Update: Galaxies, Template Objects, Warning Lists, Notice Lists, Taxonomies"
updateGOWNT
debug "Generating rc.local"
genRCLOCAL
gitPullAllRCLOCAL
debug "Installing misp-modules"