https://t.me/RX1948
Server : Apache
System : Linux enhance01.hostingraja.org 5.15.0-144-generic #157-Ubuntu SMP Mon Jun 16 07:33:10 UTC 2025 x86_64
User : webdemo_4 ( 4864)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/lib/dpkg/info/orchd.postinst
#!/bin/bash

set -e

if ! getent passwd orchd-redis > /dev/null; then
    adduser --system $quiet --home /var/orchd-redis \
        -shell /bin/bash --group --gecos "orchd-redis user" orchd-redis
fi

if ! getent group orchd-redis > /dev/null; then
    addgroup --system $quiet orchd-redis
fi

if ! id -Gn orchd-redis | grep -qw orchd-redis; then
    adduser $quiet orchd-redis orchd-redis
fi


if [ "`id -u orchd-redis`" -eq 0 ]; then
    echo "The orchd-redis system user must not have uid 0 (root).
    Please fix this and reinstall this package." >&2
    exit 1
fi

if [ "`id -g orchd-redis`" -eq 0 ]; then
    echo "The orchd-redis system user must not have root as primary group.
    Please fix this and reinstall this package." >&2
    exit 1
fi

mkdir -p /run/orchd-redis
chown orchd-redis:orchd-redis /run/orchd-redis

# Create the orchd user if it doesn't exist

if ! getent passwd orchd > /dev/null; then
    adduser --system $quiet --home /var/orchd --no-create-home \
        -shell /bin/bash --group --gecos "orchd user" orchd
    usermod -aG orchd-redis orchd
fi

mkdir -p /var/orchd/importer
chown -h orchd:orchd /var/orchd /var/orchd/importer
chmod 700 /var/orchd/importer

mkdir -p /var/www/control-panel/screenshots
chown -h orchd:orchd /var/www/control-panel/screenshots

mkdir -p /var/www/control-panel/assets
chown -h orchd:orchd /var/www/control-panel/assets

mkdir -p /var/local/enhance/orchd
chown -h orchd:orchd /var/local/enhance/orchd
chmod 700 /var/local/enhance/orchd

# Automatically added by cargo-deb
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 orchd-redis.service >/dev/null || true

	# was-enabled defaults to true, so new installations run enable.
	if deb-systemd-helper --quiet was-enabled orchd-redis.service; then
		# Enables the unit on first installation, creates new
		# symlinks on upgrades if the unit file has changed.
		deb-systemd-helper enable orchd-redis.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 orchd-redis.service >/dev/null || true
	fi
fi
# End automatically added section
# Automatically added by cargo-deb
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 orchd.service >/dev/null || true

	# was-enabled defaults to true, so new installations run enable.
	if deb-systemd-helper --quiet was-enabled orchd.service; then
		# Enables the unit on first installation, creates new
		# symlinks on upgrades if the unit file has changed.
		deb-systemd-helper enable orchd.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 orchd.service >/dev/null || true
	fi
fi
# End automatically added section
# Automatically added by cargo-deb
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 orchd-redis.service orchd.service >/dev/null || true
	fi
fi
# End automatically added section

exit 0

https://t.me/RX1948 - 2025