| Server IP : 185.252.147.100 / Your IP : 216.73.217.33 Web Server : nginx/1.27.3 System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 User : mitr ( 1000) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/lib/dpkg/info/ |
Upload File : |
#! /bin/sh
# preinst script for nginx
set -e
addnginxuser() {
# creating nginx group if he isn't already there
if ! getent group nginx >/dev/null; then
groupadd --system nginx >/dev/null
fi
# creating nginx user if he isn't already there
if ! getent passwd nginx >/dev/null; then
useradd \
--system \
--gid nginx \
--no-create-home \
--home /nonexistent \
--comment "nginx user" \
--shell /usr/sbin/nologin \
nginx >/dev/null
fi
}
case "$1" in
install)
addnginxuser
cat <<BANNER
----------------------------------------------------------------------
Thanks for using nginx!
Please find the official documentation for nginx here:
* https://nginx.org/en/docs/
Please subscribe to nginx-announce mailing list to get
the most important news about nginx:
* https://nginx.org/en/support.html
Commercial subscriptions for nginx are available on:
* https://nginx.com/products/
----------------------------------------------------------------------
BANNER
;;
upgrade)
addnginxuser
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
# Automatically added by dh_installinit/13.11.4
if [ "$1" = "install" ] && [ -n "$2" ] && [ -e "/etc/init.d/nginx" ] ; then
chmod +x "/etc/init.d/nginx" >/dev/null || true
fi
# End automatically added section
exit 0