|
1 |
#! /bin/sh |
1 |
#! /bin/sh |
2 |
# |
2 |
# |
3 |
# Univention Directory Policy |
3 |
# Univention Directory Policy |
4 |
# join script |
4 |
# join script |
|
32 |
|
32 |
|
33 |
VERSION=1 |
33 |
VERSION=1 |
34 |
|
34 |
|
35 |
if ! test -e "/usr/share/univention-join/.joined"; then |
35 |
. /usr/share/univention-join/joinscripthelper.lib || exit 1 |
36 |
echo "The server has not joined yet" |
36 |
joinscript_init |
37 |
exit 1 |
|
|
38 |
fi |
39 |
|
37 |
|
40 |
touch /usr/lib/univention-install/.index.txt |
|
|
41 |
|
42 |
test -n "`grep "univention-directory-policy v${VERSION} successful" /usr/lib/univention-install/.index.txt`" && exit 1 |
43 |
|
44 |
run-parts /usr/lib/univention-directory-policy |
38 |
run-parts /usr/lib/univention-directory-policy |
45 |
|
39 |
|
46 |
test -n "`grep "univention-directory-policy v${VERSION} successful" /usr/lib/univention-install/.index.txt`" || echo "univention-directory-policy v${VERSION} successful" >>/usr/lib/univention-install/.index.txt |
40 |
joinscript_save_current_version |
47 |
|
41 |
|
48 |
exit 0 |
42 |
exit 0 |