forked from jacobalberty/firebird-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
40 lines (32 loc) · 1.18 KB
/
install.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
#!/usr/bin/env bash
set -e
apt-get update
apt-get install -qy --no-install-recommends \
libatomic1 \
libicu67 \
libncurses6 \
libtomcrypt1 \
libtommath1 \
netbase \
procps
cd /home/firebird
tar --strip=1 -xf firebird.tar.gz
./install.sh -silent
cd /
rm -rf /home/firebird
if [ -d "/home/fixes/post_build/$(dpkg --print-architecture)" ]; then
find "/home/fixes/post_build/$(dpkg --print-architecture)" -type f -exec '{}' \;
fi
if [ -d "/home/fixes/post_build/all" ]; then
find "/home/fixes/post_build/all" -type f -exec '{}' \;
fi
find ${PREFIX} -name .debug -prune -exec rm -rf {} \;
rm -rf /var/lib/apt/lists/*
mkdir -p "${PREFIX}/skel/"
# This allows us to initialize a random value for sysdba password
mv "${VOLUME}/system/security4.fdb" "${PREFIX}/skel/security4.fdb"
# Cleaning up to restrict access to specific path and allow changing that path easily to
# something standard. See github issue https://github.com/jacobalberty/firebird-docker/issues/12
sed -i 's/^#DatabaseAccess/DatabaseAccess/g' "${VOLUME}/etc/firebird.conf"
sed -i "s~^\(DatabaseAccess\s*=\s*\).*$~\1Restrict ${DBPATH}~" "${VOLUME}/etc/firebird.conf"
mv "${VOLUME}/etc" "${PREFIX}/skel"