File: postinstall

package info (click to toggle)
simplescreenrecorder 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,048 kB
  • sloc: cpp: 14,735; ansic: 510; sh: 203; php: 137; xml: 32; makefile: 18
file content (14 lines) | stat: -rwxr-xr-x 391 bytes parent folder | download | duplicates (4)
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