Updated .gitignore to include .sh files and added helper scripts
This commit is contained in:
parent
d1ea672bd7
commit
cff4f221c6
4 changed files with 25 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -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
10
naspi/startall.sh
Executable 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
10
thinkcentre/startall.sh
Executable 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
3
thinkcentre/update.sh
Executable 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
|
Loading…
Reference in a new issue