-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
#!/bin/sh LATEST_WG_VERSION=01-22-22 ON_BOOT_DIR=/mnt/data/on_boot.d SUPPORT_DIR="${ON_BOOT_DIR}/support" WG_INSTALL_DIR=/mnt/data/wireguard WG_CONF_DIR=/etc/wireguard WG_OB_SETUP_SCRIPT=60_setup_wireguard.sh WG_CONF=wg0.conf # Check to see if Wireguard is already installed. if [ ! -d "${WG_INSTALL_DIR}" ]; then echo Installing Wireguard. # Download and Install kmod-Wireguard. curl -LJo wireguard-kmod.tar.Z "https://github.com/tusc/wireguard-kmod/releases/download/v${LATEST_WG_VERSION}/wireguard-kmod-${LATEST_WG_VERSION}.tar.Z" mv wireguard-kmod.tar.Z /tmp/ tar -C /mnt/data -xvzf /tmp/wireguard-kmod.tar.Z cp "${WG_INSTALL_DIR}/setup_wireguard.sh" "${ON_BOOT_DIR}/${WG_OB_SETUP_SCRIPT}" chmod +x "${ON_BOOT_DIR}/${WG_OB_SETUP_SCRIPT}" ${ON_BOOT_DIR}/${WG_OB_SETUP_SCRIPT} fi # Check to see if wireguard is already configured. if [ ! -f "${WG_CONF_DIR}/${WG_CONF}" ]; then # Copy configuration file out to Wireguard Config Directory. echo Configuring wg0 interface. mkdir -p "${WG_CONF_DIR}" cp "${SUPPORT_DIR}/${WG_CONF}" "${WG_CONF_DIR}/${WG_CONF}" chmod 600 "${WG_CONF_DIR}/${WG_CONF}" fi # Infrastructure is in place. Bring up the VPN. echo Bringing up Wireguard interface wg0. /usr/bin/wg-quick up wg0