mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixes #3928 - adds correct key generation and passport install
This commit is contained in:
parent
eba145503b
commit
4e7a6c0ccf
10
snipeit.sh
10
snipeit.sh
|
@ -193,7 +193,6 @@ esac
|
||||||
done
|
done
|
||||||
|
|
||||||
#Snipe says we need a new 32bit key, so let's create one randomly and inject it into the file
|
#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.
|
#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.
|
#Again, this file should be removed, which will be a prompt at the end of the script.
|
||||||
|
@ -246,6 +245,8 @@ case $distro in
|
||||||
php composer.phar install --no-dev --prefer-source
|
php composer.phar install --no-dev --prefer-source
|
||||||
perms
|
perms
|
||||||
service apache2 restart
|
service apache2 restart
|
||||||
|
php artisan key:generate
|
||||||
|
php artisan passport:install
|
||||||
;;
|
;;
|
||||||
ubuntu)
|
ubuntu)
|
||||||
##################################### Install for Ubuntu ##############################################
|
##################################### Install for Ubuntu ##############################################
|
||||||
|
@ -290,6 +291,8 @@ case $distro in
|
||||||
php composer.phar install --no-dev --prefer-source
|
php composer.phar install --no-dev --prefer-source
|
||||||
perms
|
perms
|
||||||
service apache2 restart
|
service apache2 restart
|
||||||
|
php artisan key:generate
|
||||||
|
php artisan passport:install
|
||||||
;;
|
;;
|
||||||
centos )
|
centos )
|
||||||
if [[ "$version" =~ ^6 ]]; then
|
if [[ "$version" =~ ^6 ]]; then
|
||||||
|
@ -406,8 +409,9 @@ case $distro in
|
||||||
service iptables save
|
service iptables save
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
service httpd restart
|
service httpd restart
|
||||||
|
php artisan key:generate
|
||||||
|
php artisan passport:install
|
||||||
|
|
||||||
elif [[ "$version" =~ ^7 ]]; then
|
elif [[ "$version" =~ ^7 ]]; then
|
||||||
##################################### Install for Centos/Redhat 7 ##############################################
|
##################################### Install for Centos/Redhat 7 ##############################################
|
||||||
|
@ -527,6 +531,8 @@ case $distro in
|
||||||
fi
|
fi
|
||||||
|
|
||||||
systemctl restart httpd.service
|
systemctl restart httpd.service
|
||||||
|
php artisan key:generate
|
||||||
|
php artisan passport:install
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Unable to Handle Centos Version #. Version Found: " $version
|
echo "Unable to Handle Centos Version #. Version Found: " $version
|
||||||
|
|
Loading…
Reference in a new issue