You've already forked postfix-ubuntu
comment corrections only no code changes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# Author : Allan Christensen
|
||||
# First Created : 17102020 (DD-MM-YYYY)
|
||||
@@ -17,7 +16,7 @@ if [[ $(id -u) -ne 0 ]]; then echo "" && echo "Must be root or use sudo" && echo
|
||||
install_utils="no"
|
||||
|
||||
#
|
||||
# Function to check if a service is already running or not
|
||||
# Function to check if a service is already running
|
||||
#
|
||||
serviceyes () { printf "\n%s" $service ; printf " is already running cannot continue...\n\n"; }
|
||||
servicealive () { status=$(systemctl is-active $service); if [[ "$status" == "active" ]]; then serviceyes ; exit 1; fi; }
|
||||
|
||||
Reference in New Issue
Block a user