Unify installation environment

This commit is contained in:
Vladimir Dubrovin committed 2026-05-29 20:29:25 +03:00
1 parent 01dad546b7
commit f0a672b16a
19 files changed
+185 -220

No files matched your search

+6 -3
View File
@@ -4,11 +4,12 @@
set -e
PREFIX="${1-/usr/local}"
# Check if user already exists
if id proxy >/dev/null 2>&1; then
echo "User 'proxy' already exists"
exit 0
fi
else
echo "Creating proxy user and group..."
@@ -33,7 +34,6 @@ elif command -v dscl >/dev/null 2>&1; then
dscl . create /Users/proxy NFSHomeDirectory /var/run/3proxy 2>/dev/null || true
else
echo "Warning: Could not create proxy user - no suitable user management tool found"
exit 0
fi
if id proxy >/dev/null 2>&1; then
@@ -42,4 +42,7 @@ else
echo "Warning: Failed to create user 'proxy'"
fi
fi
chown -R proxy:proxy ${PREFIX}/etc/3proxy/
exit 0