mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Fixing the script freezing prior to mysql secure install (#2434)
This commit is contained in:
parent
4ffea7ceaa
commit
a6a6aa78b0
|
@ -161,7 +161,7 @@ case $distro in
|
||||||
# Get files and extract to web dir
|
# Get files and extract to web dir
|
||||||
echo ""
|
echo ""
|
||||||
echo "## Downloading snipeit and extract to web directory."
|
echo "## Downloading snipeit and extract to web directory."
|
||||||
wget -P $tmp/ https://github.com/snipe/snipe-it/archive/$file >> /var/log/snipeit-install.log 2>&1
|
wget -P $tmp/ https://github.com/snipe/snipe-it/archive/$file
|
||||||
unzip -qo $tmp/$file -d $tmp/
|
unzip -qo $tmp/$file -d $tmp/
|
||||||
cp -R $tmp/$fileName $webdir/$name
|
cp -R $tmp/$fileName $webdir/$name
|
||||||
|
|
||||||
|
@ -170,8 +170,8 @@ case $distro in
|
||||||
#Enable mcrypt and rewrite
|
#Enable mcrypt and rewrite
|
||||||
echo "## Enabling mcrypt and rewrite"
|
echo "## Enabling mcrypt and rewrite"
|
||||||
|
|
||||||
sudo php5enmod mcrypt >> /var/log/snipeit-install.log 2>&1
|
sudo php5enmod mcrypt
|
||||||
sudo a2enmod rewrite >> /var/log/snipeit-install.log 2>&1
|
sudo a2enmod rewrite
|
||||||
|
|
||||||
#Create a new virtual host for Apache.
|
#Create a new virtual host for Apache.
|
||||||
echo "## Create Virtual host for apache."
|
echo "## Create Virtual host for apache."
|
||||||
|
@ -204,7 +204,7 @@ case $distro in
|
||||||
|
|
||||||
echo "## Setting up hosts file."
|
echo "## Setting up hosts file."
|
||||||
echo >> $hosts "127.0.0.1 $hostname $fqdn"
|
echo >> $hosts "127.0.0.1 $hostname $fqdn"
|
||||||
a2ensite $name.conf >> /var/log/snipeit-install.log 2>&1
|
a2ensite $name.conf
|
||||||
|
|
||||||
#Modify the Snipe-It files necessary for a production environment.
|
#Modify the Snipe-It files necessary for a production environment.
|
||||||
echo "## Modify the Snipe-It files necessary for a production environment."
|
echo "## Modify the Snipe-It files necessary for a production environment."
|
||||||
|
|
Loading…
Reference in a new issue