A free open source IT asset/license management system
Fixes #3928 - adds correct key generation and passport install
snipe4e7a6c0ccfb1
diff --git a/snipeit.sh b/snipeit.shindex 662e6bcf5c..f14fbf1382 100755--- a/snipeit.sh+++ b/snipeit.sh@@ -193,7 +193,6 @@ esacdone#Snipe says we need a new 32bit key, so let's create one randomly and inject it into the file-random32="$(echo `< /dev/urandom tr -dc _A-Za-z-0-9 | head -c32`)"#db_setup.sql will be injected to the database during install.#Again, this file should be removed, which will be a prompt at the end of the script.@@ -246,6 +245,8 @@ case $distro inphp composer.phar install --no-dev --prefer-sourcepermsservice apache2 restart+ php artisan key:generate+ php artisan passport:install;;ubuntu)##################################### Install for Ubuntu ##############################################@@ -290,6 +291,8 @@ case $distro inphp composer.phar install --no-dev --prefer-sourcepermsservice apache2 restart+ php artisan key:generate+ php artisan passport:install;;centos )if [[ "$version" =~ ^6 ]]; then@@ -406,8 +409,9 @@ case $distro inservice iptables savefi-service httpd restart+ php artisan key:generate+ php artisan passport:installelif [[ "$version" =~ ^7 ]]; then##################################### Install for Centos/Redhat 7 ##############################################@@ -527,6 +531,8 @@ case $distro infisystemctl restart httpd.service+ php artisan key:generate+ php artisan passport:installelseecho "Unable to Handle Centos Version #. Version Found: " $version