etc/vhost.conf -> bin/vhost.sh
This commit is contained in:
parent
4226322936
commit
ac3f54ec6f
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user