aboutsummaryrefslogtreecommitdiffstats
path: root/conf/system/afm-system-setup.sh.in
blob: ba4ff4c744e5abcd15379be4fe87bb46a1b41508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

pdir=@afm_platform_rundir@

dodir() {
	for x; do
		test -e "$x" || mkdir -m 755  "$x"
		chmod 755 "$x"
		chsmack -T -a 'System::Shared' "$x"
	done
}

dodir /run/user $pdir $pdir/display $pdir/apis $pdir/apis/ws $pdir/apis/link

@create_platform_debug@

spdir=@afm_scope_platform_dir@
if ! test -e $spdir; then
	mkdir -m 755 $spdir
	chsmack -T -a 'User::App-Shared' $spdir
	chown daemon:daemon $spdir
fi