403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.23
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/lib/dpkg/info/lxd-agent-loader.postinst
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then

    # Version 0.6 switched to udev activation and removed the ConditionVirtualization=
    # causing upgraded systems to keep trying to start the lxd-agent.service even if udev
    # didn't ask for it. Fix it by removing the bogus units left behind:
    if dpkg --compare-versions "$2" lt '0.7'; then
        reload=0

        # Cleanup former units.
        for f in /lib/systemd/system/lxd-agent-9p.service \
            /lib/systemd/system/lxd-agent-virtiofs.service \
            /etc/systemd/system/multi-user.target.wants/lxd-agent-9p.service \
            /etc/systemd/system/multi-user.target.wants/lxd-agent-virtiofs.service \
            /etc/systemd/system/multi-user.target.wants/lxd-agent.service; do
            [ -e "${f}" ] || continue
            rm -f "${f}"
            reload=1
        done

        # Reload systemd if former units were cleaned up.
        if [ "${reload}" != 0 ]; then
            systemctl --system daemon-reload >/dev/null || true
        fi
    fi
fi

# Automatically added by dh_installsystemd/13.14.1ubuntu5
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 'lxd-agent.service' >/dev/null || true
	fi
fi
# End automatically added section


exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit