etc/vhost.conf -> bin/vhost.sh

This commit is contained in:
Matthew Saunders Brown 2021-04-04 14:15:16 -07:00
parent 4226322936
commit ac3f54ec6f
22 changed files with 44 additions and 45 deletions

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set virtualhost
if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set virtualhost
if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# -v virtualhost (required)
# -u username (optional)

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set virtualhost
if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set virtualhost
if [ -n "$1" ]; then

View File

@ -4,9 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# vhost-enable.sh macro_name vhost [subdomain|alias]
# vhost-enable.sh VHostHTTPS example.com

View File

@ -4,9 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
if [ -n "$1" ]; then
if [ "$1" = '--verbose' ] || [ "$1" = '-v' ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set virtualhost
if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# # check for and set virtualhost
# if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set username
if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set username
if [ -n "$1" ]; then

View File

@ -4,9 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set username
if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set username
if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set username
if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set file to be copied in to jails
if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# make sure jails dir exists
if [[ ! -e /usr/jails/ ]]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
mode=q

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# make sure jails dir exists
if [[ ! -e /usr/jails/ ]]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# varnish-disable.sh virtualhost

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
# check for and set virtualhost
if [ -n "$1" ]; then

View File

@ -4,8 +4,8 @@
# https://git.stack-source.com/msb/vhost-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
# load config
source /usr/local/etc/vhost.conf || echo "ERROR: Either you do not have vhost user permissions or the config file is missing." && exit
# load include file
source $(dirname $0)/vhost.sh
if [ ! -f /etc/varnish/sites.d/example.com.vcl ]; then

View File

@ -1,3 +1,5 @@
#!/bin/bash
#
# vhost configs
# any script that includes this conf file will force user to be root