mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 10:09:42 +00:00
13 lines
429 B
Bash
Executable File
13 lines
429 B
Bash
Executable File
#!/bin/bash
|
|
# Expects an ephemeral volume to have been mounted at /ephemeral/data and
|
|
# mounts that with a "bind" mount to /home/hudson/workspace.
|
|
# The directory is then chown/chgrp'ed to hudson
|
|
if [ -e /dev/nvme1n1 ]; then
|
|
mkfs.ext4 /dev/nvme1n1
|
|
mount /dev/nvme1n1 /home/hudson/workspace
|
|
else
|
|
mount -o bind /ephemeral/data /home/hudson/workspace
|
|
fi
|
|
chgrp hudson /home/hudson/workspace
|
|
chown hudson /home/hudson/workspace
|