mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
commit
144b58fc15
4 changed files with 15 additions and 15 deletions
|
@ -26,7 +26,7 @@ help() {
|
|||
-f, --force Force installation
|
||||
-i, --disable-iptables Disable iptables support
|
||||
-b, --disable-fail2ban Disable fail2ban protection
|
||||
-n, --noupdate Do not run yum update command
|
||||
-n, --noupdate Do not run apt-get upgrade command
|
||||
-s, --hostname Set server hostname
|
||||
-e, --email Set email address
|
||||
-p, --password Set admin password instead of generating it
|
||||
|
@ -78,7 +78,7 @@ while getopts "hfibdnqe:m:p:s:" Option; do
|
|||
f) force='yes' ;; # Force install
|
||||
i) disable_iptables='yes' ;; # Disable iptables
|
||||
b) disable_fail2ban='yes' ;; # Disable fail2ban
|
||||
n) noupdate='yes' ;; # Disable yum update
|
||||
n) noupdate='yes' ;; # Disable apt-get upgrade
|
||||
s) servername=$OPTARG ;; # Server hostname
|
||||
e) email=$OPTARG ;; # Set email
|
||||
p) vpass=$OPTARG ;; # Admin password
|
||||
|
@ -126,11 +126,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" != 'yes' ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Check admin user account
|
||||
# Check admin group
|
||||
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" != 'yes' ]; then
|
||||
echo "Error: user admin exists"
|
||||
echo "Error: group admin exists"
|
||||
echo
|
||||
echo 'Please remove admin user account before proceeding.'
|
||||
echo 'Please remove admin group before proceeding.'
|
||||
echo 'If you want to do it automatically run installer with -f option:'
|
||||
echo "Example: bash $0 --force"
|
||||
exit 1
|
||||
|
|
|
@ -124,11 +124,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" != 'yes' ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Check admin user account
|
||||
# Check admin group
|
||||
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" != 'yes' ]; then
|
||||
echo "Error: user admin exists"
|
||||
echo "Error: group admin exists"
|
||||
echo
|
||||
echo 'Please remove admin user account before proceeding.'
|
||||
echo 'Please remove admin group before proceeding.'
|
||||
echo 'If you want to do it automatically run installer with -f option:'
|
||||
echo "Example: bash $0 --force"
|
||||
exit 1
|
||||
|
|
|
@ -25,7 +25,7 @@ help() {
|
|||
-f, --force Force installation
|
||||
-i, --disable-iptables Disable iptables support
|
||||
-b, --disable-fail2ban Disable fail2ban protection
|
||||
-n, --noupdate Do not run yum update command
|
||||
-n, --noupdate Do not run apt-get upgrade command
|
||||
-s, --hostname Set server hostname
|
||||
-e, --email Set email address
|
||||
-p, --password Set admin password instead of generating it
|
||||
|
@ -77,7 +77,7 @@ while getopts "hfibdnqe:m:p:s:" Option; do
|
|||
f) force='yes' ;; # Force install
|
||||
i) disable_iptables='yes' ;; # Disable iptables
|
||||
b) disable_fail2ban='yes' ;; # Disable fail2ban
|
||||
n) noupdate='yes' ;; # Disable yum update
|
||||
n) noupdate='yes' ;; # Disable apt-get upgrade
|
||||
s) servername=$OPTARG ;; # Server hostname
|
||||
e) email=$OPTARG ;; # Set email
|
||||
p) vpass=$OPTARG ;; # Admin password
|
||||
|
@ -123,11 +123,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" != 'yes' ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Check admin user account
|
||||
# Check admin group
|
||||
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" != 'yes' ]; then
|
||||
echo "Error: user admin exists"
|
||||
echo "Error: group admin exists"
|
||||
echo
|
||||
echo 'Please remove admin user account before proceeding.'
|
||||
echo 'Please remove admin group before proceeding.'
|
||||
echo 'If you want to do it automatically run installer with -f option:'
|
||||
echo "Example: bash $0 --force"
|
||||
exit 1
|
||||
|
|
|
@ -27,11 +27,11 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ -z "$1" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Check admin user account
|
||||
# Check admin group
|
||||
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ -z "$1" ]; then
|
||||
echo "Error: group admin exists"
|
||||
echo
|
||||
echo 'Please remove admin user account before proceeding.'
|
||||
echo 'Please remove admin group before proceeding.'
|
||||
echo 'If you want to do it automatically run installer with -f option:'
|
||||
echo "Example: bash $0 --force"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue