etc/vmail.conf -> bin/vmail.sh
This commit is contained in:
parent
32869665e1
commit
605e17eb99
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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
8
etc/vmail.conf → bin/vmail.sh
Normal file → Executable 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
|
Loading…
Reference in New Issue
Block a user