-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·35 lines (32 loc) · 1.23 KB
/
start.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
#!/bin/sh
if [ "$#" -gt 2 ]; then
echo "USAGE: /bin/sh $0 [db [<ISO DATE>]]"
echo "EXAMPLES:"
echo " /bin/sh $0 db # restores the latest db backup"
echo " /bin/sh $0 db 2023-02-18 # restores the db backup from the specified date"
exit 1
fi
multipass start archivesspace
if [ "$(multipass info archivesspace | grep "Mounts" | awk -F " " '{print $NF}')" = "--" ]; then
multipass mount "$(dirname "$(readlink -f "$0")")" archivesspace:/mnt/archivesspace
fi
if [ -n "$2" ]; then
multipass exec archivesspace -- sudo /bin/sh /mnt/archivesspace/db.sh "$2"
else
multipass exec archivesspace -- sudo /bin/sh /mnt/archivesspace/db.sh
fi
multipass exec archivesspace -- sudo /opt/archivesspace/archivesspace.sh start
echo "🌐 IP Address:"
multipass info archivesspace | grep "IPv4" | awk -F " " '{print $NF}'
echo "🧙 Staff Interface:"
echo "http://archivesspace.local:8080"
echo "🤷 Public Interface:"
echo "http://archivesspace.local:8081"
echo "🌞 Solr Interface:"
echo "http://archivesspace.local:8983"
echo "😺 OAI Interface:"
echo "http://archivesspace.local:8081"
echo "🤖 API Interface:"
echo "http://archivesspace.local:8089"
echo "🧙 Adminer (MySQL) Interface:"
echo "http://archivesspace.local/adminer"