Init shutdown script, add empty newline to SHUTDOWN.md
This commit is contained in:
parent
8e4a32dc46
commit
6c5e4df8c6
@ -4,4 +4,4 @@
|
||||
2. Unmount the iSCSI device. Run `sudo umount /mnt/iscsi`.
|
||||
3. Log out of the iSCSI session. Run `sudo iscsiadm --mode node --targetname "iqn.2020-03.net.jafner:fighter" --portal "192.168.1.10:3260" --logout`.
|
||||
4. Unmount the SMB shares. Run `for mount in media calibre-web torrenting av; do sudo umount /mnt/nas/$mount; done`. This command may need updating for the specific SMB shares currently mounted.
|
||||
5. Shut down the system. Run `sudo shutdown now`.
|
||||
5. Shut down the system. Run `sudo shutdown now`.
|
||||
|
6
fighter/scripts/shutdown.sh
Normal file
6
fighter/scripts/shutdown.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user