mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Unify installation environment
This commit is contained in:
1 parent
01dad546b7
commit
f0a672b16a
19 files changed
+185
-220
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user