-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsh_bootstrap_app.sh
33 lines (26 loc) · 1.16 KB
/
sh_bootstrap_app.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
apt-get update -y
# install PHP and MySQL
apt-get install git ifstat inetutils-traceroute traceroute telnet curl python python-pip python3 python3-pip libapache2-mod-python libapache2-mod-php php-mysql -y
apt-get install mysql-client -y
pip install requests flask ConfigParser mysql-connector-python flask-restful ast
pip3 install requests
apt-get install -y \
php libapache2-mod-php php-gd php-json php7.0-sqlite php-mysql php-mcrypt mcrypt ifstat inetutils-traceroute traceroute \
telnet curl python python-pip python3 python3-pip libapache2-mod-python libapache2-mod-php php-mysql mysql-client php php-fpm php-mysql \
php-curl php-gd php-pear php-imagick php-imap php-mcrypt php-recode php-tidy php-xmlrpc php-curl php-gd php-intl php-json php-mbstring \
php-mcrypt php-xml \
php-zip
apt-get remove apache2 -y
#systemctl enable mariadb.service
export DB_NAME=customersDB
export DB_USER=root
export DB_PWD=password
#Make dirs
mkdir /APP/
cd /APP/
rm -rf /APP/*
git clone https://github.com/MourIdri/back-end-app.git
chmod -R 777 /APP/*
cd /APP/back-end-app/
python app.py & echo "Script done app has been started as a thread "