Blame Extras/BrowserDefaultPage/install.sh

4c79b5
#!/bin/bash
4c79b5
#
4c79b5
# Copy Browser Defaul Page files into their location.
4c79b5
4c79b5
TARGET=/usr/share/doc/HTML
4c79b5
4c79b5
#
4c79b5
# Copy information
4c79b5
#
4c79b5
printf 'Updating Browser Default Page ... '
4c79b5
/bin/cp -r img/ $TARGET
4c79b5
/bin/cp index.html $TARGET
4c79b5
/bin/cp style.css $TARGET
4c79b5
printf "done.\n"
4c79b5
4c79b5
#
4c79b5
# Update file permissions.
4c79b5
#
4c79b5
printf 'Updating file permissions ... '
4c79b5
chmod -R 755 $TARGET
4c79b5
chown -R root.root $TARGET
4c79b5
printf "done.\n"
4c79b5
4c79b5
#
4c79b5
# Update SELinux context
4c79b5
#
4c79b5
/usr/sbin/selinuxenabled
4c79b5
if [ "$?" == "0" ];then
4c79b5
    printf 'Updating SELinux context ... '
4c79b5
    /sbin/restorecon -R $TARGET
4c79b5
    /usr/bin/chcon -R system_u:object_r:usr_t $TARGET
4c79b5
    printf "done.\n"
4c79b5
fi