-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.sh
executable file
·62 lines (62 loc) · 4.39 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
echo ".......................................+=.......................................
......................................+.+,......................................
.....................................+...+......................................
....................................+.....+.....................................
...................................+.......+....................................
..................................+.........=...................................
.................................+:..........+..................................
................................+=............+.................................
...............................=+..............+................................
...............................+................+...............................
..............................+.................~+..............................
.............................+...................++.............................
............................+.....................=~............................
...........................+.......................+,...........................
..........................+......IIIIIIIIIIIIII.....+...........................
.........................+......+.IIII.IIIII.I.......+..........................
........................+.........I?I=.IIIII.I........+.........................
.......................+,........IIIIIIIIIIIIII........+........................
......................+~.........II..=IIII:..I=.........+.......................
.....................=+.........IIIIIIIIIIIIIIII.........+......................
....................,+.......IIIIIIIIIIIIIIIII????I.......+.....................
....................+.......IIIIIIIIIIIIIII?????????......,+....................
...................+.......IIIIIIIIIIIII????????????.......=+...................
..................+........IIIIIIIIII???????????????........=+..................
.................+.........IIIIIIIII????????????????.........+..................
................+..........IIIII??????++????????????..........+.................
...............+...........III???????++++????????+++...........+................
..............+............I?????????+?++++???++++++............+...............
.............+.............??????????+???+++++++++++.............+..............
............+~.............??????????I??++++++++++++..............+.............
...........=+..............????????????++?++++++++++...............+............
..........~+...............????????+++++++++++++++++................+...........
..........+................?????++++++++++++++++++++................,+..........
.........=..................?+++++++++++++++++++++++.................:+.........
........+....................+++++++++++++++++++=++...................++........
.......+.......................++++++++++++++===.......................+~.......
......+.........................++++++++++======........................+.......
.....+.............................=+++++===.............................+......
....+.....................................................................+.....
...+.......................................................................+....
..+~........................................................................=...
.+=..........................................................................+..
+=............................................................................+.
++++++++++++++++++++============================================================"
echo " "
echo "Propane Installation!"
echo " "
echo "WARNING: This setup script only supports Apache2 installs with a webroot location of /var/www/html. Any other configurations will need to manually copy and edit the relevant server and configuration files."
echo "Installing Propane to: /var/www"
echo "<================================================>"
echo "Restoring backup if it exists..."
cp Propane/propane_config.ini.bak Propane/propane_config.ini
echo "Making backup of propane_config.ini"
cp Propane/propane_config.ini Propane/propane_config.ini.bak
echo "Setting install dir in propane_config.ini"
sed -i "s|changeme/|/var/www/html/|" Propane/propane_config.ini
echo "Moving propane files to specified webroot up one dir"
cp -r Propane/* /var/www/.
program_dir="/var/www/propane.py"
chmod +x $program_dir
echo "Installation Complete..."
echo "Run \"./propane.py\" from" \"$program_dir\" "to start the program."