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