Update fighter startup/shutdown scripts
This commit is contained in:
parent
c9521264a3
commit
ecf6d86d1c
@ -1,6 +1,8 @@
|
||||
#!/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
|
||||
|
||||
## 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
|
@ -78,11 +78,12 @@ for stack in /home/admin/homelab/fighter/config/*; do
|
||||
if ! $MISSING_SHARES; then
|
||||
echo " ====== Bringing up"
|
||||
STACKS_ONLINE+="$(echo $stack | xargs basename)\n"
|
||||
echo -n " ====== Time: "
|
||||
echo -n " ======== Time: "
|
||||
( time docker compose --progress quiet up -d ) 2>&1 | grep real | cut -f 2
|
||||
echo " ====== Done!"
|
||||
else
|
||||
echo " ====== Missing needed network shares. Skipping."
|
||||
STACKS_SKIPPED+="$(echo $stack | xargs basename)\n"
|
||||
fi
|
||||
|
||||
cd /home/admin/homelab/fighter/config/
|
||||
@ -92,6 +93,8 @@ done
|
||||
|
||||
echo " ==== List of stacks online:"
|
||||
echo -e "$STACKS_ONLINE"
|
||||
echo " ==== List of stacks skipped:"
|
||||
echo -e "$STACKS_SKIPPED"
|
||||
|
||||
# extra thing because my keycloak healthcheck doesn't work properly
|
||||
echo " ==== Wait 15s, then bring Keycloak forwardauth containers online"
|
||||
|
Loading…
Reference in New Issue
Block a user