Skip to content

Commit

Permalink
Move snapshot directory to /var/BeaKer/snapshots (#83)
Browse files Browse the repository at this point in the history
* Store snapshots in /var/BeaKer/snapshots instead of /opt/BeaKer/snapshots

* Create snapshot parent directory

---------

Co-authored-by: Naomi Kramer <[email protected]>
  • Loading branch information
caffeinatedpixel and caffeinatedpixel authored May 9, 2023
1 parent ab940ab commit 21c4c2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ volumes:
driver: local
driver_opts:
type: 'none'
device: /opt/BeaKer/snapshots
device: /var/BeaKer/snapshots
o: bind
services:
elasticsearch:
Expand Down
6 changes: 3 additions & 3 deletions installer/stage/BeaKer/install_beaker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ EOF

ensure_snapshot_repo_exists() {
# Create snapshot folder if it doesn't exist
if [ ! -d "/opt/BeaKer/snapshots" ]; then
$SUDO mkdir "/opt/BeaKer/snapshots"
if [ ! -d "/var/BeaKer/snapshots" ]; then
$SUDO mkdir -p "/var/BeaKer/snapshots"
fi
$SUDO chmod 777 /opt/BeaKer/snapshots
$SUDO chmod 777 /var/BeaKer/snapshots
}

require_aih_web_server_listening () {
Expand Down

0 comments on commit 21c4c2e

Please sign in to comment.