- if [ `$(ID)` == 0 ] ;then\
- $(ECHO) -e "\n Superuser install, installing config files as $(USER),$(GROUP)" ;\
- INSTALL_CONF="$(INSTALL_T) -b $(INSTALL_S)" ;\
+ if [ `$(ID)` = 0 ] ;then\
+ if [ x$(USER) = x ]; then \
+ if [ `$(ID) privoxy` ]; then \
+ $(ECHO) -e "\n Setting user and group to privoxy";\
+ INSTALL_CONF="$(INSTALL_T) -b -g privoxy -o privoxy" ;\
+ else \
+ $(ECHO) -e "******************************************************************" ;\
+ $(ECHO) -e " WARNING! WARNING! installing config files as root!" ;\
+ $(ECHO) -e " It is strongly recommended to run $(PROGRAM) as non-root user," ;\
+ $(ECHO) -e " and to install the config files as that user!" ;\
+ $(ECHO) -e " Please read INSTALL, and create a privoxy user!" ;\
+ $(ECHO) -e "*******************************************************************" ;\
+ exit 1 ;\
+ fi ;\
+ else \
+ if [ x$(GROUP) = x ]; then \
+ $(ECHO) -e "\n Superuser install, installing config files as $(USER),$(USER)" ;\
+ INSTALL_CONF="$(INSTALL_T) -b -o $(USER) -g $(USER)" ;\
+ else \
+ $(ECHO) -e "\n Superuser install, installing config files as $(USER),$(GROUP)" ;\
+ INSTALL_CONF="$(INSTALL_T) -b -o $(USER) -g $(GROUP)" ;\
+ fi ;\
+ fi ;\