File: postinstall

package info (click to toggle)
simplescreenrecorder 0.4.4-6.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,780 kB
  • sloc: cpp: 15,393; ansic: 769; sh: 203; php: 137; xml: 45; makefile: 20
file content (14 lines) | stat: -rwxr-xr-x 391 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# You should run this (as root) after installation/uninstallation to make sure the libraries, desktop entry and icon will be found.

set -e
cd "$( dirname "${BASH_SOURCE[0]}" )"

if [ x"$( whoami )" != x"root" ]; then
	echo "Error: postinstall should be run as root"
	exit 1
fi

ldconfig
update-desktop-database -q
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true