Run install-portainer.sh. SystemD required.
Add upstream and locations to your config.
| #!/bin/bash | |
| # | |
| # Info: | |
| # Add static route on interface up. | |
| # Suitable for CentOS 7. | |
| # $DHCP4_ROUTERS is dispatcher environment variable. | |
| # Others can be found by switching DEBUG mode. | |
| # | |
| # Install: |
| #!/bin/sh | |
| # docker-wrapper script. | |
| # A wrapper script for invoking cli tools with docker. | |
| # | |
| # For example we'll use it for Bash Automated Testing System. | |
| # Put this script in $PATH as `bats`. | |
| PROGNAME="$(basename $0)" | |
| IMAGE="bats/bats" |
| #!/bin/bash -ex | |
| # | |
| # Add to your Dockerfile: | |
| # | |
| # RUN chmod +x add-apt-proxy.sh && ./add-apt-proxy.sh | |
| # | |
| # For additional information see: | |
| # | |
| # https://github.com/sameersbn/docker-apt-cacher-ng | |
| # https://gist.github.com/dergachev/8441335 |
| #!/bin/bash | |
| # Set Variables | |
| EXIMLOG=/var/log/exim4/mainlog | |
| MYLOG=/tmp/exim_status.log | |
| OFFSETFILE=/tmp/eximstatusoffset.dat | |
| EXIMSTATS=/usr/sbin/eximstats | |
| LOGTAIL=/usr/sbin/logtail | |
| ZABBIX_SENDER=/usr/bin/zabbix_sender | |
| ZABBIX_CONF=/etc/zabbix/zabbix_agentd.conf |
| # vim: set ft=pf | |
| # /etc/pf.conf | |
| # Required order: options, queueing, translation and filtering. | |
| ext_if="vtnet0" | |
| # default openvpn settings for the client network | |
| openvpn_clients = "10.8.0.0/24" | |
| # put your tunnel interface here, it is usually tun0 |
| #!/usr/bin/env gorun | |
| package main | |
| import ( | |
| "fmt" | |
| "syscall" | |
| "golang.org/x/crypto/ssh/terminal" | |
| ) | |
| func main() { |
| #!/bin/bash | |
| PORTS=('5060/tcp' '5060/udp' '5061/tcp' '5061/udp' '4569/udp' '5038/tcp' '10000-20000/udp') | |
| SERVICE_FILE="/etc/firewalld/services/asterisk.xml" | |
| if [ ! -e "${SERVICE_FILE}" ]; then | |
| firewall-cmd --permanent --new-service=asterisk | |
| fi | |
| for PORT in ${PORTS[@]}; do |
| DELIMITER $$ | |
| DROP PROCEDURE IF EXISTS getMissedCalls $$ | |
| CREATE PROCEDURE getMissedCalls(IN day VARCHAR(10)) | |
| LANGUAGE SQL | |
| SQL SECURITY INVOKER | |
| COMMENT 'Aggregate Asterisk CDR by disposition and dst peers' | |
| BEGIN | |
| DECLARE cols TEXT; | |
| DECLARE done BOOLEAN DEFAULT FALSE; | |
| -- make columns with peer names: |