|
@@ -92,21 +92,24 @@ if [ ! -f $COMPLETION_FILE ]; then
|
92
|
92
|
fi
|
93
|
93
|
|
94
|
94
|
function argument_checks {
|
95
|
|
- echo './install-freedombone.sh [domain] [username] [subdomain code]'
|
|
95
|
+ SYNTAX='./install-freedombone.sh [domain] [username] [subdomain code]'
|
96
|
96
|
echo ''
|
97
|
97
|
if [ ! -d /home/$MY_USERNAME ]; then
|
98
|
98
|
echo "There is no user '$MY_USERNAME' on the system. Use 'adduser $MY_USERNAME' to create the user."
|
99
|
99
|
exit 1
|
100
|
100
|
fi
|
101
|
101
|
if [ ! $DOMAIN_NAME ]; then
|
|
102
|
+ echo $SYNTAX
|
102
|
103
|
echo 'Please specify your domain name'
|
103
|
104
|
exit 2
|
104
|
105
|
fi
|
105
|
106
|
if [ ! $MY_USERNAME ]; then
|
|
107
|
+ echo $SYNTAX
|
106
|
108
|
echo 'Please specify your username'
|
107
|
109
|
exit 3
|
108
|
110
|
fi
|
109
|
111
|
if [ ! $FREEDNS_SUBDOMAIN_CODE ]; then
|
|
112
|
+ echo $SYNTAX
|
110
|
113
|
echo 'Please specify the freedns subdomain code. To find it from '
|
111
|
114
|
echo "https://freedns.afraid.org select 'Dynamic DNS', then 'quick "
|
112
|
115
|
echo "cron example' and copy the code located between '?' and '=='."
|