This file contains hidden or 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 | |
# Remove outdated letsencrypt CSRs, keys and certificates | |
lesslBasePath=/etc/letsencrypt | |
keepOldVersions=1 | |
keepOldCsrDays=180 | |
keepOldKeysDays=180 | |
if [ ! -d "$lesslBasePath" ]; then |
This file contains hidden or 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
# This cronjob is configured on the target server: | |
# - srclxdremotename: name of the lxd remote that contains the container to be synced | |
# - srclxdcontainername: name of the remote lxd container to be synced | |
# - locallxdcontainertargetname: local target container name to sync to | |
# - root@srcserver: ssh root login to the remote lxd server | |
# lxc-sync jobs | |
25 12,18 * * * /opt/lxc-sync/lxc-sync.sh -o srclxdremotename -r srclxdcontainername -l locallxdcontainertargetname -c "ssh -p2222 -oStrictHostKeyChecking=no root@srcserver" |
This file contains hidden or 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 -o errexit -o nounset -o pipefail | |
export LC_ALL=C | |
# Checks for NVMe disks. nmve-cli must be installed. | |
# | |
# Author: Tomas Barton | |
# Requirements: | |
# nvme-cli - git clone https://github.com/linux-nvme/nvme-cli | |
# | |
# Usage: |