mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Add monit and a few utility scripts
This commit is contained in:
parent
b09ac86a62
commit
830f6a5609
12 changed files with 537 additions and 14 deletions
16
roles/scripts/templates/updateAll.sh
Executable file
16
roles/scripts/templates/updateAll.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
for dir in {{docker_compose_files_folder}}/*
|
||||
do
|
||||
if [ -d ${dir} ]
|
||||
then
|
||||
echo "Updating ${dir}"
|
||||
cd "${dir}"
|
||||
docker-compose pull
|
||||
[ ${dir} = 'nextcloud' ] && docker-compose build --pull
|
||||
docker-compose up -d
|
||||
echo --------------------------------------------------------------
|
||||
fi
|
||||
done;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue