⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.139
Server IP:
44.234.190.86
Server:
Linux ip-172-31-55-191 5.4.0-1060-aws #63~18.04.1-Ubuntu SMP Mon Nov 15 14:31:31 UTC 2021 x86_64
Server Software:
Apache/2.4.29 (Ubuntu)
PHP Version:
7.0.33-30+ubuntu18.04.1+deb.sury.org+1
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
lib
/
dpkg
/
info
/
View File Name :
systemd.postinst
#! /bin/sh set -e _systemctl() { if [ -d /run/systemd/system ]; then systemctl "$@" fi } _update_catalog() { journalctl --update-catalog || true } # Update Message Catalogs database and reload in response to dpkg triggers if [ "$1" = "triggered" ]; then shift for trigger in "$@"; do case $trigger in /usr/lib/systemd/catalog) _update_catalog ;; /etc/init.d) _systemctl daemon-reload || true ;; esac done exit 0 fi # Enable getty and remote-fs.target by default on new installs if [ -z "$2" ]; then systemctl enable getty@tty1.service || true systemctl enable remote-fs.target || true fi # Enable timesyncd by default on new installs installs and upgrades if dpkg --compare-versions "$2" lt "218-11~"; then systemctl enable systemd-timesyncd.service || true fi # Enable resolved by default on new installs installs and upgrades if dpkg --compare-versions "$2" lt "234-1ubuntu2~"; then systemctl enable systemd-resolved.service || true fi # Drop stock /etc/rc.local on upgrades if dpkg --compare-versions "$2" lt "234-2ubuntu11~"; then if [ -f /etc/rc.local ]; then if [ "10fd9f051accb6fd1f753f2d48371890" = "$(md5sum /etc/rc.local | cut -d\ -f1)" ]; then echo Removing empty /etc/rc.local rm -f /etc/rc.local || true fi fi fi # Use stub resolve.conf by default on new installs if [ -z "$2" ]; then mkdir -p /run/systemd/resolve if [ -e /etc/resolv.conf ]; then cp /etc/resolv.conf /run/systemd/resolve/stub-resolv.conf fi # If /etc/resolv.conf is a bind-mount, moving or replacing # /etc/resolv.conf may fail ln -snf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf || true fi # Enable ondemand by default on new installs installs and upgrades if [ -e /lib/systemd/system/ondemand.service ] && dpkg --compare-versions "$2" lt "231-7~"; then systemctl enable ondemand.service || true fi # Do a one-time migration of the local time setting if [ -z "$2" ]; then if [ -f /etc/default/rcS ]; then . /etc/default/rcS fi if [ "$UTC" = "no" ] && [ ! -e /etc/adjtime ]; then printf "0.0 0 0.0\n0\nLOCAL\n" > /etc/adjtime fi fi # Do a one-time migration of the TMPTIME setting if [ -z "$2" ]; then if [ -f /etc/default/rcS ]; then . /etc/default/rcS fi if [ ! -e /etc/tmpfiles.d/tmp.conf ]; then case "$TMPTIME" in -*|infinite|infinity) cat > /etc/tmpfiles.d/tmp.conf <
/dev/null || true done fi if dpkg --compare-versions "$2" lt-nl "235-3~"; then # systemd-bus-proxyd got dropped before stretch, and never created any file deluser --system systemd-bus-proxy || true fi if dpkg --compare-versions "$2" lt-nl "236-1~"; then # Clean up old /var/lib/systemd/clock on upgrade. # The clock file used by systemd-timesyncd is now stored in # StateDirectory=systemd/timesync. rm -f /var/lib/systemd/clock fi # Process all tmpfiles that we ship, including any overrides in # runtime-dir/sysadmin-dir/other packages (e.g. rsyslog) # # Ignore if this fails, because e.g. %b will fail on WSL systemd-tmpfiles --create || : # Automatically added by dh_installdeb/11.1.6ubuntu1 dpkg-maintscript-helper rm_conffile /etc/X11/xinit/xinitrc.d/50-systemd-user.sh 228-3\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/systemd/bootchart.conf 230-1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.hostname1.conf 233-3\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.locale1.conf 233-3\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.login1.conf 233-3\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.machine1.conf 228-5\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.network1.conf 233-3\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.resolve1.conf 233-3\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.systemd1.conf 233-3\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.timedate1.conf 233-3\~ -- "$@" # End automatically added section