Skip to content
Permalink
Browse files

Added script to mount ephemeral disk

  • Loading branch information
davidmerfield committed Nov 23, 2019
1 parent b0adbcd commit d96892fa6786f4e0b6d9fb46c0085ea1ee9f85a7
Showing with 17 additions and 0 deletions.
  1. +17 −0 scripts/production/mount_disk.sh
@@ -0,0 +1,17 @@
#!/bin/sh

# I should write a script to rotate log files
set -e

DEVICE_NAME=nvme0n1
CACHE_DIRECTORY=/cache
BLOT_USER=ec2-user

# 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 $CACHE_DIRECTORY

# Restart the server
stop blot
start blot

0 comments on commit d96892f

Please sign in to comment.
You can’t perform that action at this time.