![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 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, Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh set -e # Create a tinyproxy system group if ! getent group tinyproxy > /dev/null; then addgroup --quiet --system tinyproxy fi # Create a tinyproxy system user if ! getent passwd tinyproxy > /dev/null; then adduser --quiet --system \ --ingroup tinyproxy \ --home /run/tinyproxy \ --disabled-password --shell /bin/false \ tinyproxy usermod -c "Tinyproxy daemon" tinyproxy fi # Make sure /var/log/tinyproxy is writable by the tinyproxy user if [ "$1" = "configure" ]; then if dpkg --compare-versions "$2" lt "1.8.4-2~"; then chmod 750 /var/log/tinyproxy chmod 640 /var/log/tinyproxy/* 2>/dev/null || true chown tinyproxy:adm /var/log/tinyproxy chown tinyproxy:adm /var/log/tinyproxy/* 2>/dev/null || true fi fi # Automatically added by dh_installsystemd/12.7.3ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then # In case this system is running systemd, we need to ensure that all # necessary tmpfiles (if any) are created before starting. if [ -d /run/systemd/system ] ; then systemd-tmpfiles --create tinyproxy.conf >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installdeb/12.7.3ubuntu1 dpkg-maintscript-helper mv_conffile /etc/tinyproxy.conf /etc/tinyproxy/tinyproxy.conf 1.8.4-2\~ tinyproxy -- "$@" # End automatically added section # Automatically added by dh_installinit/12.7.3ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -x "/etc/init.d/tinyproxy" ]; then update-rc.d tinyproxy defaults >/dev/null if [ -n "$2" ]; then _dh_action=restart else _dh_action=start fi invoke-rc.d tinyproxy $_dh_action || exit 1 fi fi # End automatically added section # Automatically added by dh_installsystemd/12.7.3ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask 'tinyproxy.service' >/dev/null || true # was-enabled defaults to true, so new installations run enable. if deb-systemd-helper --quiet was-enabled 'tinyproxy.service'; then # Enables the unit on first installation, creates new # symlinks on upgrades if the unit file has changed. deb-systemd-helper enable 'tinyproxy.service' >/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 'tinyproxy.service' >/dev/null || true fi fi # End automatically added section