Files
ubuntu-server-setup/setup.sh
T
2016-11-24 00:05:36 +08:00

18 lines
397 B
Bash

#!/bin/bash
function getCurrentDir() {
local current_dir="${BASH_SOURCE%/*}"
if [[ ! -d "${current_dir}" ]]; then current_dir="$PWD"; fi
echo ${current_dir}
}
function includeDependencies() {
source "${current_dir}/setupLibrary.sh"
}
current_dir=$(getCurrentDir)
includeDependencies
echo -n "Enter the new username of the user account:"
read username
addUserAccount ${username}