Initial commit (I feel unsafe)
This commit is contained in:
11
authelia_server-update
Normal file
11
authelia_server-update
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p "${HOME}"/update_logs
|
||||
logFile=${HOME}/update_logs/$(date +%y_%m).log
|
||||
{
|
||||
echo -e "\n[+] updating authelia\n"
|
||||
|
||||
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml pull &&
|
||||
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml up -d --always-recreate-deps --remove-orphans &&
|
||||
yes | sudo docker image prune -af
|
||||
} &>>"$logFile"
|
||||
Reference in New Issue
Block a user