forked from jedimatt42/tipi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
executable file
·35 lines (28 loc) · 888 Bytes
/
setup.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
TIPI=/home/tipi/tipi
cd $TIPI || exit 1
sudo apt-get install python-dev
sudo apt-get install python-virtualenv
sudo apt-get install python-imaging
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libssl-dev
sudo apt-get install libjpeg-dev
sudo apt-get install wiringpi
sudo apt-get install samba
sudo apt-get install sqlite3
sudo apt-get install libsqlite3-dev
sudo apt-get install php
if [ ! -e /home/tipi/tipi_disk ]; then
mkdir /home/tipi/tipi_disk
fi
if [ -d /home/tipi/xdt99 ]; then
rm -r /home/tipi/xdt99
fi
( cd /home/tipi && git clone https://github.com/endlos99/xdt99.git )
if [ -d /home/tipi/tidbit ]; then
rm -f /home/tipi/tidbit
fi
( cd /home/tipi && git clone https://github.com/dnotq/tidbit.git )
( cd $TIPI/services && $TIPI/services/setup.sh )
( cd $TIPI/htdocs && $TIPI/htdocs/setup.sh )
( cd $TIPI/setup && $TIPI/setup/setup.sh )