Mercurial > hg > anonet-resdb
comparison configure @ 1105:df77b4da95f1 draft
[configure] fixes
author | d3v11 <d3v11@d3v11.ano> |
---|---|
date | Tue, 16 Apr 2013 03:36:42 +0000 |
parents | 5016f753b47a |
children | 474071fa6e61 |
comparison
equal
deleted
inserted
replaced
1104:5016f753b47a | 1105:df77b4da95f1 |
---|---|
3 vars="gitd_ip gitd_basepath git_name git_email tinydns_config tinydns__rootsrvrname tinydns__rootsrvrip tinydns__tldsrvrname tinydns__tldsrvrip tinydns__srvrip tinydns__srvrname" | 3 vars="gitd_ip gitd_basepath git_name git_email tinydns_config tinydns__rootsrvrname tinydns__rootsrvrip tinydns__tldsrvrname tinydns__tldsrvrip tinydns__srvrip tinydns__srvrname" |
4 | 4 |
5 echo "Welcome to the resdb configurator!" >&2 | 5 echo "Welcome to the resdb configurator!" >&2 |
6 echo >&2 | 6 echo >&2 |
7 | 7 |
8 if ! echo "$var=${!var}" >/dev/null 2>&1 | 8 if ! $(echo "$var=${!var}" >/dev/null 2>&1) |
9 then | 9 then |
10 echo "Your shell sucks. If you're using a stupid OS like Ubuntu that doesn't" >&2 | 10 echo "Your shell sucks. If you're using a stupid OS like Ubuntu that doesn't" >&2 |
11 echo "give a damn about backwards compatibility, I'd suggest fixing your" >&2 | 11 echo "give a damn about backwards compatibility, I'd suggest fixing your" >&2 |
12 echo "default shell, which you can do by typing \"ln -s bash /bin/sh\" at a" >&2 | 12 echo "default shell, which you can do by typing \"ln -s bash /bin/sh\" at a" >&2 |
13 echo "root shell prompt." >&2 | 13 echo "root shell prompt." >&2 |
14 echo "If you have some ancient Unix system, I'd suggest installing bash." >&2 | 14 echo "If you have some ancient Unix system, I'd suggest installing bash." >&2 |
15 echo "If you have questions, you can always bother SRN :-)" >&2 | 15 echo "If you have questions, you can always bother SRN :-)" >&2 |
16 echo >&2 | |
17 echo "dpkg-reconfigure dash -- d3v11" >&2 | |
18 | |
16 exit 1 | 19 exit 1 |
17 fi | 20 fi |
18 | 21 |
19 for var in $vars ; do | 22 for var in $vars ; do |
20 export "$var"="$(cat conf/$var 2>/dev/null)" | 23 export "$var"="$(cat conf/$var 2>/dev/null)" |