forked from mwaldropdatastax/ds-docker-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sh
executable file
·32 lines (28 loc) · 835 Bytes
/
config.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
#!/bin/bash
echo "This script will create initial config files in the ./config directory"
echo "DSE Files"
if [ ! -f "./conf/dse.yaml" ]; then
{
echo "copy ./conf/dse.yaml"
docker-compose exec node cp /opt/dse/resources/dse/conf/dse.yaml /config/.
}
fi
if [ ! -f "./conf/cassandra.yaml" ]; then
{
echo "copy ./conf/cassandra.yaml"
docker-compose exec node cp /opt/dse/resources/cassandra/conf/cassandra.yaml /config/.
}
fi
echo "Studio Files"
if [ ! -f "./conf/studio/configuration.yaml" ]; then
{
echo "copy ./conf/studio/configuration.yaml"
docker-compose exec studio cp /opt/datastax-studio/conf/configuration.yaml /config/.
}
fi
if [ ! -f "./conf/studio/server.sh" ]; then
{
echo "copy ./conf/studio/server.sh"
docker-compose exec studio cp /opt/datastax-studio/bin/server.sh /config/.
}
fi