feat: Adds customer share mount to runs/after/system

This commit is contained in:
2025-11-18 10:48:47 -05:00
parent 8daa596205
commit 4b674c40c9
3 changed files with 23 additions and 9 deletions

View File

@@ -18,6 +18,15 @@ _setup-mounts() {
sudo mount -a ||
log --warning "You will need to make sure this computer's ip is in the allow list, then run 'sudo mount -a'"
fi
line="nas.housh.dev:/var/nfs/shared/Customer_Share /mnt/customers nfs defaults 0 0"
if sudo cat /etc/fstab | grep -vq "$line"; then
log " Setting up nas mount."
sudo mkdir -p /mnt/customers &>/dev/null
echo "$line" | sudo tee --append /etc/fstab
sudo systemctl daemon-reload
sudo mount -a ||
log --warning "You will need to make sure this computer's ip is in the allow list, then run 'sudo mount -a'"
fi
}
_setup-kanata() {