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

This commit is contained in:
Matthew Saunders Brown 2021-04-02 12:02:50 -07:00
parent 32869665e1
commit 605e17eb99
18 changed files with 41 additions and 35 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

8
etc/vmail.conf → bin/vmail.sh Normal file → Executable file
View File

@ -1,4 +1,10 @@
# vmail configs
#!/bin/bash
#
# vmail-stack
# https://git.stack-source.com/msb/vmail-stack
# MIT License Copyright (c) 2021 Matthew Saunders Brown
#
# vmail include file, used by other vmail bash scripts
# any script that includes this conf file will force user to be vmail
if [ "$USER" != "vmail" ]; then