Merge "[WK2] Revert patch / set a limit of layer count and atlas size." into 2.0_beta
[framework/web/webkit-efl.git] / debian-for-webkit1-efl / libwebkit-engine.postinst.in
1 #!/bin/sh
2  
3 # A path to the WebKit's data bases and appcache dir
4 if [ ! -d /opt/dbspace/.webkit ];
5 then
6     mkdir /opt/dbspace/.webkit
7 fi
8
9 if [ ${USER} = "root" ]
10 then
11     #change file owner
12     # 1. libraries
13     chown root:root /usr/lib/libewebkit.so
14
15     # 2. Resources
16        chown root:root /usr/share/ewebkit-0/themes/default.edj
17        chown 5000:5000 /opt/dbspace/.webkit
18 fi
19
20 #change file permissions
21 # 1. libraries
22 chmod 644 /usr/lib/libewebkit.so
23
24 # 2. Resources
25 chmod 644 /usr/share/ewebkit-0/themes/default.edj
26 chmod 775 /opt/dbspace/.webkit
27
28 #################################################################
29 # Set executin script
30 #################################################################
31 echo "[WebKit-EFL] postinst done ..."