File: config-gfarm-update.ldap

package info (click to toggle)
gfarm 2.3.2-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 10,972 kB
  • ctags: 10,894
  • sloc: ansic: 84,510; sh: 13,707; java: 6,866; makefile: 2,286; python: 771; perl: 325; sql: 130; xml: 50; asm: 37; csh: 2
file content (50 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
update_usage_ldap()
{
	return 1 # backend-specific option doesn't exist
}

update_postprocess_ldap()
{
	:
}

update_first_set_param_ldap()
{
	:
}

update_last_set_param_ldap()
{
	:
}

update_sanity_ldap()
{
	return 0
}

update_ldap()
{
	if ! cmp -s ${config_dir}/gfarm.schema ${LDAP_SCHEMA}; then
		echo "${PROGNAME}: copying new schema"

		if ${START_SERVICE}; then
			service_ctl gfmd stop
			service_ctl $RC_BACKEND_BASENAME stop
		fi
		cp ${config_dir}/gfarm.schema "${LDAP_SCHEMA}"
		# sync required at least in Linux
		sync; sync; sync
		if ${START_SERVICE}; then
			service_ctl $RC_BACKEND_BASENAME start
			service_ctl gfmd start
		else
			echo You need to restart $RC_BACKEND_BASENAME and gfmd
		fi		
	fi
}

update_access_db_ldap()
{
	echo >&2 "${PROGNAME}: ldap backend is not supported yet"
}