mirror of
https://github.com/webmin/webmin.git
synced 2026-06-20 11:20:30 +01:00
more precise check for /etc/webmin/miniserv.conf
This commit is contained in:
@@ -162,10 +162,10 @@ if [[ $EUID -eq 0 ]]; then
|
||||
[[ ! -f "${TEMP}/tarballs/${PROD}-${version}/setup.sh" ]] && \
|
||||
cp "${TEMP}/setup.sh" "${TEMP}/tarballs/${PROD}-${version}/setup.sh"
|
||||
echo -en "${CYAN}search minserv.conf ... ${NC}"
|
||||
if [[ -d "/etc/webmin" ]] ; then
|
||||
MINICONF=`find /etc -name miniserv.conf 2>/dev/null | grep ${PROD} | head -n 1`
|
||||
else
|
||||
MINICONF=`find /* -maxdepth 6 -name miniserv.conf 2>/dev/null | grep ${PROD} | head -n 1`
|
||||
if [[ -f "/etc/webmin/miniserv.conf" ]] ; then
|
||||
MINICONF=`find /etc -name miniserv.conf 2>/dev/null | grep ${PROD} | head -n 1`
|
||||
else
|
||||
MINICONF=`find /* -maxdepth 6 -name miniserv.conf 2>/dev/null | grep ${PROD} | head -n 1`
|
||||
fi
|
||||
MINICONF=`grep env_WEBMIN_CONFIG= ${MINICONF}| sed 's/.*_WEBMIN_CONFIG=//'`
|
||||
echo -e "${ORANGE}found: ${MINICONF}${NC}"
|
||||
|
||||
Reference in New Issue
Block a user