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
|
||||
# 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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# vhost configs
|
||||
|
||||
# any script that includes this conf file will force user to be root
|
Loading…
Reference in New Issue
Block a user