- requires ansible to be installed
- run periodically with:
ansible-playbook -i hosts.ini playbook.yml
#!/bin/bash | |
set -e | |
mkdir -p /run/apache2 | |
rm -f /run/apache2/httpd.pid | |
echo "Waiting for database" | |
DB_READY=0 | |
for i in {1..60}; do |
*nat | |
:PREROUTING ACCEPT [0:0] | |
:INPUT ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:POSTROUTING ACCEPT [0:0] | |
# Masquerading all outgoing routet traffic | |
-A POSTROUTING -o eth0 -j MASQUERADE | |
COMMIT |
#!/bin/sh | |
if [ "$#" -ne 2 ]; then | |
echo "USAGE: $0 ARCH REPO/PACKAGE" | |
echo "EXAMPLE $0 armhf main/busybox" | |
exit 1 | |
fi | |
BASE=$( cd $( dirname $0 ); pwd) |
/exports 127.0.0.1(fsid=0,async,ro) | |
/exports/vol1 *(async,no_subtree_check,no_auth_nlm,insecure,no_root_squash) | |
/exports/vol2 *(async,no_subtree_check,no_auth_nlm,insecure,no_root_squash) |
docker network create --driver=macvlan --subnet=192.168.1.0/24 --gateway 192.168.1.210 -o parent=eno1 -o macvlan_mode=bridge macvlan0 |
ansible-playbook -i hosts.ini playbook.yml
# This variant uses the same endpoint for the check and the login form | |
server { | |
listen 80; | |
server_name localhost; | |
location = /internal-nginx-auth-endpoint { | |
internal; | |
proxy_pass http://172.17.0.1:8080/; | |
} |
#!/usr/bin/env python | |
# | |
# Replaces ${placeholder} in a config file by it's corresponding environment variable. | |
# Fails if a variable is missing. | |
# | |
# The latest version of this script can be found at https://gist.github.com/micw/d7c0e34aee751e81c5aa952b29b8631b | |
# | |
import argparse,re | |
from os import environ |
#!/bin/bash | |
set -e | |
pkgs=(libclamav7 libclamav-dev clamav-base clamav-daemon clamav-dbg clamav-docs clamav-freshclam clamav-milter clamav-testfiles clamav) | |
installed_pkgs=( $( dpkg-query -f '${binary:Package}\n' -W | grep clamav ) ) | |
update_pkgs=() | |
for p1 in "${pkgs[@]}"; do | |
for p2 in "${installed_pkgs[@]}"; do |