-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
executable file
·42 lines (32 loc) · 1.12 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
41
42
#!/bin/bash
# Constants
container=fms-prep
[ ! -z "$1" ] && container=$1
# Execute command within the container
cmd() {
docker exec -itu0 $FMS_PREP_CONTEXT $@
}
export FMS_PREP_CONTEXT=$container
# Update OS
echo Updating libraries
cmd apt-get update
# Execution context
cd "$(dirname "$0")/.."
source .env
[ -z $PROCESSOR ] && PROCESSOR=amd
# Install FileMaker Server
cmd apt install /install/fms/filemaker-server-$VERSION-${PROCESSOR}64.deb || exit 1
# Prompt the user to confirm if they want to install Devin.fm
if [ -f ./prep/installations/devin/install_devin_unix.zip ]; then
echo "Do you want to install Devin.fm? (y/N)"
read install_devin
if [ "$install_devin" = "Y" ] || [ "$install_devin" = "y" ]; then
echo Installing Devin.fm...
cmd unzip /install/devin/install_devin_unix.zip -d /tmp
# Temporary solution until Devin.fm implements my enhancement
export FMS_PREP_CONTEXT="-w /tmp/install_devin $container"
cmd ./install_devin_unix.sh
# cmd /tmp/install_devin/install_devin_unix.sh
fi
fi
# If /install/others has files beside readme.md, prompt installation