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
| #!/usr/bin/env bash | |
| set -e | |
| # http://nginx.org/download/nginx-1.16.0.tar.gz | |
| SRC_ROOT=/usr/src | |
| NSRC_ROOT=/usr/src/nginx | |
| NPS_VERSION=1.13.35.2 | |
| NGINX_VERSION=1.16.0 |
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 | |
| ### Builds PHP from source on Ubuntu 18 | |
| set -e | |
| echo "Prepairing build tools" | |
| DEBIAN_FRONTEND=noninteractive apt update -y && apt install -y build-essential \ | |
| bison autoconf bison re2c pkg-config libsystemd-dev libxml2-dev \ | |
| libssl-dev libsqlite3-dev libcurl4-openssl-dev libcurl4 \ | |
| unzip libenchant-dev libffi-dev libpng-dev libgmp-dev libonig-dev \ | |
| libpq-dev libedit-dev librecode-dev libargon2-0-dev libzip-dev |
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
| #Record terminal sessions | |
| if [ "x$SESSION_RECORD" = "x" ] | |
| then | |
| TTY_CON=$(tty | cut -d '/' -f3)/$(tty | cut -d '/' -f4) | |
| TTY_IP=$(who | grep "${TTY_CON}" | cut -d ' ' -f16 | tr -d '()') | |
| output=/var/log/session/session_$(date +%F_%H-%M-%S)_$USER.$TTY_IP | |
| SESSION_RECORD=started | |
| export SESSION_RECORD | |
| script -t -f -q 2>${output}.timing $output |