#!/bin/bash
cd /docker/zabbix
source /etc/restic/repos/example.repo
source .env
CONTAINER=zabbix_mariadb_1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zmprov mc default zimbraFeatureChangePasswordEnabled FALSE | |
zmprov mc default zimbraPasswordLocked TRUE | |
zmprov mc defaultExternal zimbraFeatureChangePasswordEnabled FALSE | |
zmprov mc defaultExternal zimbraPasswordLocked TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
su zimbra | |
zmprov -l gaa | grep -v ^admin@.* > /tmp/all-accounts.txt | |
for i in `cat /tmp/all-accounts.txt`; do zmprov deleteAccount $i && echo $i $'\u2713'; done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Look for subdirectories starting with a letter | |
# and reset all containers | |
for d in [a-z]* | |
do | |
( cd "$d" && docker-compose down --remove-orphans && docker-compose up -d ) | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Change to the script's directory & create directory | |
cd $(dirname "$(readlink -f "$0")") | |
mkdir -p ./pgdumps | |
# Start postgres service | |
docker --log-level=error compose up -d postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Start mysql service of your compose file | |
docker compose up -d mysql | |
# Load DB_PASS | |
source .env | |
docker compose exec mysql /usr/bin/mysql -u root --password=${MYSQL_ROOT_PASSWORD} -e 'show databases;' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Change to the script's directory & create directory | |
cd $(dirname "$(readlink -f "$0")") | |
mkdir -p ./dbdumps | |
# Load database name + root password | |
source .env | |
# Check if variables were provided |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt update | |
apt install make | |
curl https://digint.ch/download/btrbk/releases/btrbk-0.27.1.tar.xz -o /tmp/btrbk.tar.xz | |
tar xf /tmp/btrbk.tar.xz -C /tmp | |
make install -C /tmp/btrbk-0.27.1/ | |
rm -r /tmp/btrbk* |