#!/bin/bash
#Check if Root
if [ $UID -ne 0 ]; then
echo "Please sudo first....!"
exit
else
if [ -z "$1" ]; then
echo "Enter username"
else
adduser $1
usermod -a -G sudo $1
usermod -g www-data $1
su - $1
git config --global core.editor nano
/bin/echo "Enter Full Name:"
read fullname
git config --global user.name "$fullname"
/bin/echo "Enter Email Address:"
read email
git config --global user.email "$email"
fi
fi
I work with PHP 7.3. Linux OS: Ubuntu 18.04. IDE: Apache NetBeans 10. DB: MySQL.
Tuesday, September 19, 2017
Adding new Web Developer Users - dev_user.sh
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment