|
Lines 61-67
Link Here
|
| 61 |
joinscript="/usr/lib/univention-install/$1" |
61 |
joinscript="/usr/lib/univention-install/$1" |
| 62 |
if [ -x "$joinscript" ] ; then |
62 |
if [ -x "$joinscript" ] ; then |
| 63 |
shift |
63 |
shift |
| 64 |
local role="$(ucr get server/role)" |
64 |
local role="$(/usr/sbin/univention-config-registry get server/role)" |
| 65 |
if [ "$role" = "domaincontroller_master" -o "$role" = "domaincontroller_backup" ] ; then |
65 |
if [ "$role" = "domaincontroller_master" -o "$role" = "domaincontroller_backup" ] ; then |
| 66 |
"$joinscript" "$@" |
66 |
"$joinscript" "$@" |
| 67 |
fi |
67 |
fi |
|
Lines 79-85
Link Here
|
| 79 |
joinscript="/usr/lib/univention-install/$1" |
79 |
joinscript="/usr/lib/univention-install/$1" |
| 80 |
if [ -x "$joinscript" ] ; then |
80 |
if [ -x "$joinscript" ] ; then |
| 81 |
shift |
81 |
shift |
| 82 |
if [ "$(ucr get server/role)" = "domaincontroller_master" ] ; then |
82 |
if [ "$(/usr/sbin/univention-config-registry get server/role)" = "domaincontroller_master" ] ; then |
| 83 |
"$joinscript" "$@" |
83 |
"$joinscript" "$@" |
| 84 |
fi |
84 |
fi |
| 85 |
fi |
85 |
fi |
|
Lines 106-112
Link Here
|
| 106 |
# fi |
106 |
# fi |
| 107 |
# |
107 |
# |
| 108 |
is_domain_controller () { |
108 |
is_domain_controller () { |
| 109 |
role="$(ucr get server/role)" |
109 |
role="$(/usr/sbin/univention-config-registry get server/role)" |
| 110 |
[ "$role" = domaincontroller_master -o "$role" = domaincontroller_backup -o "$role" = domaincontroller_slave ] |
110 |
[ "$role" = domaincontroller_master -o "$role" = domaincontroller_backup -o "$role" = domaincontroller_slave ] |
| 111 |
} |
111 |
} |
| 112 |
|
112 |
|