]> git.ipfire.org Git - people/jschlag/pbs-docker.git/blame - src/pbs-hub/setup-org.sh
Initial code check in
[people/jschlag/pbs-docker.git] / src / pbs-hub / setup-org.sh
CommitLineData
881d45dc
JS
1#!/bin/bash
2#
3#settings
4#
5="database"
6
7# build the pbs from master branch
8apt-get update -y && apt-get install -y gcc make git
9# add a user
10addgroup --gid 2000 pbs
11adduser --system --no-create-home --shell /bin/bash --uid 2000 --disabled-password --disabled-login --gid 2000 pbs
12
13# build the pot
14mkdir -p /opt/dev
15cd /opt/
16git clone -b master http://git.ipfire.org/pub/git/pbs.git
17cd 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
25make
26make install
27# cleanup
28apt-get remove -y git make gcc
29apt-get autoremove -y
30apt-get clean
31rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /opt/dev/*
32
33# set permissions