homelab/fighter/scripts/shutdown.sh
Joey Hafner af16fa74ea
All checks were successful
Deploy to Fighter / Deploy (push) Successful in 6s
Deploy to Fighter / Notify (push) Successful in 1s
Fix using wrong docker compose command
2024-02-20 11:38:30 -08:00

6 lines
338 B
Bash

#!/bin/bash
for stack in /home/admin/homelab/fighter/config/*; do cd $stack && docker compose down; done
sudo umount /mnt/iscsi
sudo iscsiadm --mode node --targetname "iqn.2020-03.net.jafner:fighter" --portal "192.168.1.10:3260" --logout
for mount in media calibre-web torrenting av; do sudo umount /mnt/nas/$mount; done
sudo shutdown now