Check-in [4bd1108d37]
Overview
Comment:Updated to fully qualify path to key and certificate
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4bd1108d370c4ef0c83084229bff3bc7e03993e7
User & Date: rkeene on 2014-11-18 03:21:32
Other Links: manifest | tags
Context
2014-11-18
03:21
Updated to include build script in the AppFS appfs package check-in: 5e29d51203 user: rkeene tags: trunk
03:21
Updated to fully qualify path to key and certificate check-in: 4bd1108d37 user: rkeene tags: trunk
03:07
Added ignored option for "rw" for fstab support check-in: a2d245a487 user: rkeene tags: trunk
Changes

Modified appfs-mkfs from [22eddb5383] to [d5deebecbf].

32
33
34
35
36
37
38


39



40




41
42
43
44
45
46
47
32
33
34
35
36
37
38
39
40
41
42
43
44

45
46
47
48
49
50
51
52
53
54
55







+
+

+
+
+
-
+
+
+
+







	pkgfile="$1"
else
	mode='dir'

	pkgsdir="$1"
fi
appfsdir="$2"
sitekey="$3"
sitecert="$4"

if [ -n "${sitekey}" ]; then
	sitekey="$(readlink -f "${sitekey}")"
fi
shift; shift

if [ -n "${sitecert}" ]; then
	sitecert="$(readlink -f "${sitecert}")"
fi

if [ -z "${pkgsdir}" -a -z "${pkgfile}" ] || [ -z "${appfsdir}" ]; then
	echo 'Usage: appfs-mk {--cpio <pkgfile>|<pkgsdir>} <appfsdir> [<site-key> [<site-certificate>]]' >&2

	exit 1
fi

245
246
247
248
249
250
251
252

253
254
255
256
257
258
259
260
261
262
263
264
253
254
255
256
257
258
259

260
261
262
263
264
265
266
267
268
269
270
271
272







-
+












else
	indexfile="${appfsdir}/index.new"
fi

echo "${packagelistfile_hash},sha1" > "${indexfile}"

if [ -x "$(which 'appfs-cert' 2>/dev/null)" ]; then
	appfs-cert sign-site "${indexfile}" "$@"
	appfs-cert sign-site "${indexfile}" "${sitekey}" "${sitecert}"
fi

if [ -z "$APPFS_SIGN_IN_PLACE" ]; then
	mv "${indexfile}" "${appfsdir}/index"
fi

case "${mode}" in
	file)
		cd /
		rm -rf "${workdir}"
		;;
esac