add logs/additional.log for yum output
This commit is contained in:
16
install.sh
16
install.sh
@@ -6,9 +6,9 @@
|
|||||||
mkdir scripts
|
mkdir scripts
|
||||||
mkdir logs
|
mkdir logs
|
||||||
echo "
|
echo "
|
||||||
yum -y update && yum -y upgrade
|
yum -y update && yum -y upgrade > logs/additional.log
|
||||||
yum -y install epel-release
|
yum -y install epel-release >> logs/additional.log
|
||||||
yum -y install vim nano gcc wget nginx libsqlite3x-devel.x86_64 postgresql-server postgresql-devel postgresql-contrib bzip2-devel zlib-devel libffi-devel openssl-devel policycoreutils-python.x86_64 0:2.5-22.el7
|
yum -y install vim nano gcc wget nginx libsqlite3x-devel.x86_64 postgresql-server postgresql-devel postgresql-contrib bzip2-devel zlib-devel libffi-devel openssl-devel policycoreutils-python.x86_64 0:2.5-22.el7 >> logs/additional.log
|
||||||
firewall-cmd --zone=public --add-port=80/tcp --permanent
|
firewall-cmd --zone=public --add-port=80/tcp --permanent
|
||||||
firewall-cmd --zone=public --add-port=443/tcp --permanent
|
firewall-cmd --zone=public --add-port=443/tcp --permanent
|
||||||
firewall-cmd --reload
|
firewall-cmd --reload
|
||||||
@@ -21,12 +21,12 @@ semanage permissive -a httpd_t
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
|
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz >> logs/additional.log
|
||||||
tar xf Python-3.7.0.tar.xz
|
tar xf Python-3.7.0.tar.xz
|
||||||
cd Python-3.7.0
|
cd Python-3.7.0
|
||||||
./configure --prefix /usr/src/python37
|
./configure --prefix /usr/src/python37 >> logs/additional.log
|
||||||
make
|
make >> /root/logs/additional.log
|
||||||
make altinstall
|
make altinstall >> logs/additional.log
|
||||||
/usr/src/python37/bin/python3.7 -m pip install --upgrade pip
|
/usr/src/python37/bin/python3.7 -m pip install --upgrade pip
|
||||||
/usr/src/python37/bin/python3.7 -m pip install virtualenv
|
/usr/src/python37/bin/python3.7 -m pip install virtualenv
|
||||||
cd ..
|
cd ..
|
||||||
@@ -130,5 +130,5 @@ echo "Installing gunicorn..."
|
|||||||
sh scripts/gunicornsetup.sh > logs/gunicornsetup.log
|
sh scripts/gunicornsetup.sh > logs/gunicornsetup.log
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo "Installing nginx..."
|
echo "Installing nginx..."
|
||||||
sh scripts/ginxsetup.sh > logs/nginxsetup.log
|
sh scripts/nginxsetup.sh > logs/nginxsetup.log
|
||||||
echo "Done. Logs can be found in /root/logs/"
|
echo "Done. Logs can be found in /root/logs/"
|
||||||
|
|||||||
Reference in New Issue
Block a user