Updated .gitignore to include .sh files and added helper scripts

This commit is contained in:
Thord Johansson 2024-03-26 01:26:00 +01:00
parent d1ea672bd7
commit cff4f221c6
4 changed files with 25 additions and 1 deletions

3
.gitignore vendored
View file

@ -8,8 +8,9 @@
volumes/
*/*/*/*
# only allow .yml files
# only allow .yml and .sh files
!*.yml
!*.sh
!*.md
!.gitignore

10
naspi/startall.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
if [ $(basename $PWD) != $(hostname) ]; then
echo "Incorrect directory for host"
exit 1
fi
# will skip folders with a leading "_" (indicating not used)
for d in ./[^_]*/ ; do (cd $d && docker-compose up -d && cd ..); done

10
thinkcentre/startall.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
if [ $(basename $PWD) != $(hostname) ]; then
echo "Incorrect directory for host"
exit 1
fi
# will skip folders with a leading "_" (indicating not used)
for d in ./[^_]*/ ; do (cd $d && docker-compose up -d && cd ..); done

3
thinkcentre/update.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
docker pull containrrr/watchtower
docker run -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once