-
Notifications
You must be signed in to change notification settings - Fork 16
/
install.sh
executable file
·34 lines (25 loc) · 1 KB
/
install.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
34
#!/bin/bash -e
sudo chmod 1777 /tmp
for file in /u16all/version/*.sh;
do
. "$file"
done
mkdir -p /var/lib/neo4j/conf
cd /u16all && cp -rf neo4j-server.properties /var/lib/neo4j/conf/
echo "================= Adding mysql cnf ==================="
cd /u16all && cp -rf my.cnf /etc/mysql/my.cnf
POSTGRES_VERSION=11
echo "================= Adding PostgreSQL cnf ==================="
cd /u16all && cp -rf pg_hba.cnf /etc/postgresql/"$POSTGRES_VERSION"/main/pg_hba.conf
echo "================= Adding shippable_service ==================="
mkdir -p /usr/local/bin/shippable_services
cp /u16all/services/* /usr/local/bin/shippable_services
mv /usr/local/bin/shippable_services/shippable_service /usr/local/bin/shippable_service
echo "================= Adding packages for shippable_service =================="
apt install -y netcat
echo "================= Adding pycrypto ============"
pip install pycrypto
echo "================= Cleaning package lists ==================="
apt-get clean
apt-get autoclean
apt-get autoremove