mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
Do not add admin user by default
This commit is contained in:
parent
a905d00008
commit
4e2d4d56ac
@ -137,10 +137,6 @@ install: install-chroot-dir install-bin install-etc install-log install-man inst
|
|||||||
@getent passwd proxy || useradd -UMr -s /bin/false -c 3proxy proxy
|
@getent passwd proxy || useradd -UMr -s /bin/false -c 3proxy proxy
|
||||||
@if [ ! -f $(INSTALL_CFG_DEST)/passwd ]; then \
|
@if [ ! -f $(INSTALL_CFG_DEST)/passwd ]; then \
|
||||||
touch $(INSTALL_CFG_DEST)/passwd;\
|
touch $(INSTALL_CFG_DEST)/passwd;\
|
||||||
stty -echo ;\
|
|
||||||
echo "" ;\
|
|
||||||
read -p "Proxy admin password: " password && $(INSTALL_CFG_DEST)/add3proxyuser.sh admin $password ;\
|
|
||||||
stty echo ;\
|
|
||||||
fi
|
fi
|
||||||
@chown -R proxy:proxy $(CHROOTDIR)
|
@chown -R proxy:proxy $(CHROOTDIR)
|
||||||
@chmod 550 $(CHROOTDIR)/
|
@chmod 550 $(CHROOTDIR)/
|
||||||
@ -159,6 +155,7 @@ install: install-chroot-dir install-bin install-etc install-log install-man inst
|
|||||||
@echo Default config uses Google\'s DNS.
|
@echo Default config uses Google\'s DNS.
|
||||||
@echo It\'s recommended to use provider supplied DNS or install local recursor, e.g. pdns-recursor.
|
@echo It\'s recommended to use provider supplied DNS or install local recursor, e.g. pdns-recursor.
|
||||||
@echo Configure preferred DNS in $(INSTALL_CFG_DEST)/3proxy.cfg.
|
@echo Configure preferred DNS in $(INSTALL_CFG_DEST)/3proxy.cfg.
|
||||||
|
@echo run \'$(INSTALL_CFG_DEST)/add3proxyuser.sh admin password\' to configure \'admin\' user
|
||||||
@if [ -f /usr/sbin/service ]; then \
|
@if [ -f /usr/sbin/service ]; then \
|
||||||
/usr/sbin/service 3proxy stop ;\
|
/usr/sbin/service 3proxy stop ;\
|
||||||
/usr/sbin/service 3proxy start ;\
|
/usr/sbin/service 3proxy start ;\
|
||||||
|
Loading…
Reference in New Issue
Block a user