Skip to content

Commit

Permalink
Updates mount script
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Nov 24, 2019
1 parent 6a85187 commit a22b6b9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/production/mount_disk.sh
@@ -1,11 +1,12 @@
#!/bin/sh

# This is part of the upstart script for Blot so if
# you move it, make sure to update the upstart script
set -e
set -x

# This is part of the upstart script for Blot
DEVICE_NAME=nvme0n1

# Ensure we have mounted the file system
mkfs -t xfs /dev/$DEVICE_NAME
mount /dev/$DEVICE_NAME $CACHE_DIRECTORY
chown -R $BLOT_USER:$BLOT_USER $BLOT_CACHE_DIRECTORY
mkfs -t xfs /dev/$DEVICE_NAME || true
mount /dev/$DEVICE_NAME $CACHE_DIRECTORY || true
chown -R $BLOT_USER:$BLOT_USER $BLOT_CACHE_DIRECTORY || true

0 comments on commit a22b6b9

Please sign in to comment.