]>
Commit | Line | Data |
---|---|---|
881d45dc JS |
1 | #!/bin/bash |
2 | # | |
3 | #settings | |
4 | # | |
5 | ="database" | |
6 | ||
7 | # build the pbs from master branch | |
8 | apt-get update -y && apt-get install -y gcc make git | |
9 | # add a user | |
10 | addgroup --gid 2000 pbs | |
11 | adduser --system --no-create-home --shell /bin/bash --uid 2000 --disabled-password --disabled-login --gid 2000 pbs | |
12 | ||
13 | # build the pot | |
14 | mkdir -p /opt/dev | |
15 | cd /opt/ | |
16 | git clone -b master http://git.ipfire.org/pub/git/pbs.git | |
17 | cd pbs | |
18 | # Maybe we have to change the configuration | |
19 | #sed -i s/"mysqlpassword"/"$mysql_pass"/g config.h | |
20 | #sed -i s/"mysqlhost"/"$mysql_host"/g config.h | |
21 | #sed -i s/"authmode"/"$pot_authmode"/g config.h | |
22 | #sed -i s/"sleeptime"/"$pot_sleeptime"/g config.h | |
23 | ||
24 | ./configure --prefix=/usr | |
25 | make | |
26 | make install | |
27 | # cleanup | |
28 | apt-get remove -y git make gcc | |
29 | apt-get autoremove -y | |
30 | apt-get clean | |
31 | rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /opt/dev/* | |
32 | ||
33 | # set permissions |