Argument checks

This commit is contained in:
Bob Mottram 2014-09-20 20:51:50 +01:00
parent 8fe1758ea6
commit 787b369ca0
1 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,17 @@ INSTALL_DIR=/root/build
export DEBIAN_FRONTEND=noninteractive
function argument_checks {
if [ ! $DOMAIN_NAME ]; then
echo "Please specify your domain name"
exit
fi
if [ ! $MY_USERNAME ]; then
echo "Please specify your username"
exit
fi
}
function initial_setup {
apt-get -y update
apt-get -y dist-upgrade
@ -685,6 +696,7 @@ function folders_for_email_addresses {
chmod +x /usr/bin/emailrule
}
argument_checks
initial_setup
install_editor
enable_backports