Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.118.252.215
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/self/root/var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/self/root/var/lib/dpkg/info/plocate.postinst
#! /bin/sh

set -e

GROUP="plocate"

if [ "$1" = "configure" ]; then
    update-alternatives --install /usr/bin/locate locate /usr/bin/plocate 90 \
	--slave /usr/share/man/man1/locate.1.gz locate.1.gz /usr/share/man/man1/plocate.1.gz \
	--slave /usr/bin/updatedb updatedb /usr/sbin/updatedb.plocate \
        --slave /usr/share/man/man8/updatedb.8.gz updatedb.8.gz /usr/share/man/man8/updatedb.plocate.8.gz

    if ! getent group "$GROUP" > /dev/null 2>&1 ; then
    	addgroup --system "$GROUP"
    fi

    # Versions before 1.1.0 used the mlocate group.
    if dpkg --compare-versions "$2" lt-nl "1.1.0-1"; then
    	dpkg-statoverride --remove /usr/bin/plocate
    fi

    if ! dpkg-statoverride --list /usr/bin/plocate >/dev/null 2>&1; then
    	dpkg-statoverride --update --add root "$GROUP" 2755 /usr/bin/plocate 
    fi

    # Databases before 1.1.0-2 are usually incomplete. (See #976688.)
    # A normal updatedb won't fix it, unfortunately, until /usr is next
    # updated for some other reason. Since it never hit testing,
    # this is the simplest fix.
    if [ -f /var/lib/plocate/plocate.db ] && dpkg --compare-versions "$2" ge "1.1.0-1" && dpkg --compare-versions "$2" lt "1.1.1-2"; then
        echo "Removing possibly-broken plocate.db from early 1.1.x version..."
    	rm /var/lib/plocate/plocate.db
    fi

    # Moved in 1.1.0.
    if [ -f /var/lib/mlocate/plocate.db ] && ! [ -f /var/lib/plocate/plocate.db ]; then
        mv /var/lib/mlocate/plocate.db /var/lib/plocate/plocate.db
        chgrp "$GROUP" /var/lib/plocate/plocate.db
    fi

    # Create plocate.db on first install, by converting from mlocate if it exists.
    if ! [ -f /var/lib/plocate/plocate.db ] && [ -f /var/lib/mlocate/mlocate.db ]; then
        set +e
        echo "Creating initial plocate database..."
        plocate-build /var/lib/mlocate/mlocate.db /var/lib/plocate/plocate.db
        chgrp "$GROUP" /var/lib/plocate/plocate.db
        set -e
    fi
fi


# Automatically added by dh_installsystemd/13.11.4
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	# The following line should be removed in trixie or trixie+1
	deb-systemd-helper unmask 'plocate-updatedb.timer' >/dev/null || true

	# was-enabled defaults to true, so new installations run enable.
	if deb-systemd-helper --quiet was-enabled 'plocate-updatedb.timer'; then
		# Enables the unit on first installation, creates new
		# symlinks on upgrades if the unit file has changed.
		deb-systemd-helper enable 'plocate-updatedb.timer' >/dev/null || true
	else
		# Update the statefile to add new symlinks (if any), which need to be
		# cleaned up on purge. Also remove old symlinks.
		deb-systemd-helper update-state 'plocate-updatedb.timer' >/dev/null || true
	fi
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.11.4
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 'plocate-updatedb.service' 'plocate-updatedb.timer' >/dev/null || true
	fi
fi
# End automatically added section


Anon7 - 2022
AnonSec Team