mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-09-20 17:11:17 +08:00
Alpine: Add some additional dependencies and minor script fixes
Signed-off-by: Michael Ziminsky (Z) <mgziminsky@users.noreply.github.com>
This commit is contained in:
@ -778,7 +778,7 @@ process_status(){
|
||||
:
|
||||
else
|
||||
# non-Docker system
|
||||
if service "${i}" status | grep -E 'is\srunning' &> /dev/null; then
|
||||
if service "${i}" status | grep -q -E 'is\srunning|started'; then
|
||||
status_of_process="active"
|
||||
else
|
||||
status_of_process="inactive"
|
||||
|
@ -86,6 +86,7 @@ if [[ "$*" == *"once"* ]]; then
|
||||
if [[ "$*" != *"quiet"* ]]; then
|
||||
echo -ne " ${INFO} Running logrotate ..."
|
||||
fi
|
||||
mkdir -p "${STATEFILE%/*}"
|
||||
/usr/sbin/logrotate --force --state "${STATEFILE}" /etc/pihole/logrotate
|
||||
else
|
||||
# Handle rotation for each log file
|
||||
@ -115,4 +116,3 @@ else
|
||||
echo -e "${OVER} ${TICK} Deleted ${deleted} queries from long-term query database"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -167,12 +167,14 @@ PIHOLE_META_DEPS_APK=(
|
||||
dialog
|
||||
git
|
||||
grep
|
||||
iproute2-ss
|
||||
iproute2-minimal # piholeARPTable.sh
|
||||
iproute2-ss # piholeDebug.sh
|
||||
jq
|
||||
libcap
|
||||
logrotate
|
||||
lscpu # piholeDebug.sh
|
||||
lshw # piholeDebug.sh
|
||||
ncurses
|
||||
nmap-ncat
|
||||
procps-ng
|
||||
psmisc
|
||||
shadow
|
||||
|
Reference in New Issue
Block a user