Skip to content

Instantly share code, notes, and snippets.

SHOW VERSION;
sed -i "s/php_admin_value\[open_basedir.*/php_admin_value\[open_basedir\]\ \=\ \/var\/www\/html\/\:\/tmp\:\/data\/moodledata\//g" /etc/php5/fpm/pool.d/app.conf
<?php
#
#
$url = $_SERVER['REQUEST_URI'];
$schoolid = explode("/", $url)[2];
$ch = curl_init();
#$consul = $_ENV['CONSUL_HOST'] . ":" . $_ENV['CONSUL_PORT'] . "/pulse/tenant/?recursive";
$consul_host = getenv('CONSUL_HOST');
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -x
export RETRIES=3
# Document box build time
echo "Built by Packer on $(date +'%Y-%m-%d %H:%M:%S %Z')" \