forked from pgEdge/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbp.sh
More file actions
executable file
·41 lines (31 loc) · 725 Bytes
/
Copy pathbp.sh
File metadata and controls
executable file
·41 lines (31 loc) · 725 Bytes
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
source env.sh
## optional parms
comp="$1"
echo "########## Build POSIX Sandbox ##########"
outp="out/posix"
clusterDir=$outp/cluster
if [ -d $clusterDir ]; then
echo "Removing local clusters..."
$outp/$api localhost cluster-destroy all
fi
if [ -d $outp ]; then
echo "Removing current '$outp' directory..."
$outp/$api stop
sleep 2
sudo rm -rf $outp/data/*
sudo rm -rf $outp
fi
sudo rm -rf /var/lib/pgbackrest
./devel/startHTTP.sh
./build.sh -X posix -R
cd $outp
./$api set GLOBAL REPO http://localhost:8000
./$api info
if [ `arch` == "i386" ]; then
echo "Skipping CTLIBS for `arch`"
else
if [ ! -f $OUT/ctlibs-el9-arm.tgz ]; then
cp -pv $IN/ctlibs/*.tgz $OUT/.
fi
./$api install ctlibs
fi