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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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