Skip to content

Commit 21c4c2e

Browse files
Move snapshot directory to /var/BeaKer/snapshots (#83)
* Store snapshots in /var/BeaKer/snapshots instead of /opt/BeaKer/snapshots * Create snapshot parent directory --------- Co-authored-by: Naomi Kramer <naomi@activecountermeasures.com>
1 parent ab940ab commit 21c4c2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ volumes:
55
driver: local
66
driver_opts:
77
type: 'none'
8-
device: /opt/BeaKer/snapshots
8+
device: /var/BeaKer/snapshots
99
o: bind
1010
services:
1111
elasticsearch:

installer/stage/BeaKer/install_beaker.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ EOF
177177

178178
ensure_snapshot_repo_exists() {
179179
# Create snapshot folder if it doesn't exist
180-
if [ ! -d "/opt/BeaKer/snapshots" ]; then
181-
$SUDO mkdir "/opt/BeaKer/snapshots"
180+
if [ ! -d "/var/BeaKer/snapshots" ]; then
181+
$SUDO mkdir -p "/var/BeaKer/snapshots"
182182
fi
183-
$SUDO chmod 777 /opt/BeaKer/snapshots
183+
$SUDO chmod 777 /var/BeaKer/snapshots
184184
}
185185

186186
require_aih_web_server_listening () {

0 commit comments

Comments
 (0)