This commit is contained in:
Mateusz Gruszczyński committed 2026-10-07 11:17:41 +02:00
1 parent e046b56322
commit 743f70675b
1 file changed
+2 -2
+2 -2
View File
@@ -36,7 +36,7 @@ Environment=RUST_LOG=rust_proxy=info,warn
Environment=MALLOC_ARENA_MAX=2 Environment=MALLOC_ARENA_MAX=2
Environment=PATH=/opt/rustproxy-certbot/bin:/usr/local/bin:/usr/bin:/bin Environment=PATH=/opt/rustproxy-certbot/bin:/usr/local/bin:/usr/bin:/bin
EnvironmentFile=-/etc/rustproxy/environment EnvironmentFile=-/etc/rustproxy/environment
ExecStart=/usr/bin/$BINARY_NAME --data-dir /var/lib/rustproxy --admin-listen 0.0.0.0:9090 serve --proxy-listen 0.0.0.0:80 --tls-listen 0.0.0.0:443 ExecStart=/usr/bin/$BINARY_NAME --data-dir /var/lib/rustproxy --admin-listen 0.0.0.0:9090 serve --proxy-listen 0.0.0.0:80 --tls-listen 0.0.0.0:443 --allow-remote-admin
Restart=on-failure Restart=on-failure
RestartSec=3 RestartSec=3
KillSignal=SIGINT KillSignal=SIGINT
@@ -104,7 +104,7 @@ if ! getent passwd "$PACKAGE_NAME" >/dev/null 2>&1; then
adduser --system --ingroup "$PACKAGE_NAME" --home "/var/lib/$PACKAGE_NAME" --no-create-home \\ adduser --system --ingroup "$PACKAGE_NAME" --home "/var/lib/$PACKAGE_NAME" --no-create-home \\
--disabled-password --shell /usr/sbin/nologin "$PACKAGE_NAME" >/dev/null --disabled-password --shell /usr/sbin/nologin "$PACKAGE_NAME" >/dev/null
fi fi
install -d -o "$PACKAGE_NAME" -g "$PACKAGE_NAME" -m 0750 "/var/lib/$PACKAGE_NAME" "/var/log/$PACKAGE_NAME" install -d -o "$PACKAGE_NAME" -g "$PACKAGE_NAME" -m 0700 "/var/lib/$PACKAGE_NAME" "/var/log/$PACKAGE_NAME"
SCRIPT SCRIPT
fi fi
cat >> "$PKG/scripts/deb-postinstall.sh" <<SCRIPT cat >> "$PKG/scripts/deb-postinstall.sh" <<SCRIPT