homelab/fighter/scripts/shutdown.sh
Joey Hafner d53e974d7e
All checks were successful
Deploy to Fighter / Deploy (push) Successful in 37s
Deploy to Fighter / Notify (push) Successful in 4s
Update fighter startup/shutdown scripts
2024-03-09 01:04:44 -08:00

8 lines
419 B
Bash

#!/bin/bash
for stack in /home/admin/homelab/fighter/config/*; do cd $stack && docker compose down; done
## I don't think unmounting each mount is actually necessary or useful.
#sudo umount /mnt/nas/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