403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.197.209
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/lib/dpkg/info/colord.postinst
#!/bin/sh

set -e

case "$1" in
    configure)
    
# create the scanner group if it isn't already there
# We need to check for the existence of the group to avoid system/non-system
# group discrepencies. (Bug #648287, LP: #989921)
        if ! getent group scanner >/dev/null; then
	    addgroup --quiet --system scanner
        fi

# ...create colord user if it isn't already there...
        adduser --system --group --home /var/lib/colord \
	    --quiet --gecos "colord colour management daemon" colord

# ...add system-wide icc profiles directory...
        mkdir -p /var/lib/colord/icc
# ...finally, ensure /var/lib/colord has the right permissions
	chown colord:colord /var/lib/colord /var/lib/colord/icc
# Restore selinux context (Bug #695085)
        if which restorecon >/dev/null 2>&1; then
            restorecon /var/lib/colord /var/lib/colord/icc
        fi

	;;
esac	

# Automatically added by dh_installtmpfiles/13.24.1ubuntu2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if [ -x "$(command -v systemd-tmpfiles)" ]; then
		systemd-tmpfiles ${DPKG_ROOT:+--root="$DPKG_ROOT"} --create colord.conf || true
	fi
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.24.1ubuntu2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if [ -d /run/systemd/system ]; then
		systemctl --system daemon-reload >/dev/null || true
		if [ -n "$2" ]; then
			_dh_action=restart
		else
			_dh_action=start
		fi
		deb-systemd-invoke $_dh_action 'colord.service' >/dev/null || true
	fi
fi
# End automatically added section


exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit