#!/bin/bash # Vesta installation wrapper # http://vestacp.com # # Currently Supported Operating Systems: # # RHEL 5, 6, 7 # CentOS 5, 6, 7 # Debian 7, 8 # Ubuntu 12.04 - 18.04 # Amazon Linux 2017 # base='https://raw.githubusercontent.com/stasisha/vesta/master' # Am I root? if [ "x$(id -u)" != 'x0' ]; then echo 'Error: this script can only be executed by root' exit 1 fi # Check admin user account if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ -z "$1" ]; then echo "Error: user admin exists" echo echo 'Please remove admin user before proceeding.' echo 'If you want to do it automatically run installer with -f option:' echo "Example: bash $0 --force"