scripts dutchification - batch 1

This commit is contained in:
bergware
2023-10-01 20:49:14 +02:00
parent 74d12ebae2
commit dfbe59fbe3
7 changed files with 14 additions and 28 deletions
+2 -4
View File
@@ -98,10 +98,8 @@ avahid_reload(){
avahid_update(){
# 0 = update needed, 1 = no action
if avahid_running; then
if check && [[ "$(this allow-interfaces)" == "$BIND" ]]; then exit 1; else exit 0; fi
fi
exit 1
if ! avahid_running; then exit 1; fi
if check && [[ "$(this allow-interfaces)" == "$BIND" ]]; then exit 1; else exit 0; fi
}
avahid_status(){
+2 -4
View File
@@ -126,10 +126,8 @@ nfsd_reload(){
nfsd_update(){
# 0 = update needed, 1 = no action
if nfsd_running; then
if check && [[ "$(this)" == "-H ${BIND// / -H }" ]]; then exit 1; else exit 0; fi
fi
exit 1
if ! nfsd_running; then exit 1; fi
if check && [[ "$(this)" == "-H ${BIND// / -H }" ]]; then exit 1; else exit 0; fi
}
case "$1" in
+2 -4
View File
@@ -702,10 +702,8 @@ nginx_renew(){
nginx_update(){
# 0 = update needed, 1 = no action
if nginx_running; then
if check && [[ "$(this)" == "$BIND" ]]; then exit 1; else exit 0; fi
fi
exit 1
if ! nginx_running; then exit 1; fi
if check && [[ "$(this)" == "$BIND" ]]; then exit 1; else exit 0; fi
}
nginx_upgrade(){
+2 -4
View File
@@ -98,10 +98,8 @@ ntpd_reload(){
ntpd_update(){
# 0 = update needed, 1 = no action
if ntpd_running; then
if check && [[ "$(this 'interface listen')" == "$BIND" ]]; then exit 1; else exit 0; fi
fi
exit 1
if ! ntpd_running; then exit 1; fi
if check && [[ "$(this 'interface listen')" == "$BIND" ]]; then exit 1; else exit 0; fi
}
ntpd_status(){
+2 -4
View File
@@ -103,10 +103,8 @@ rpc_reload(){
rpc_update(){
# 0 = update needed, 1 = no action
if rpc_running; then
if check && [[ "$(this)" == "-h ${BIND// / -h }" ]]; then exit 1; else exit 0; fi
fi
exit 1
if ! rpc_running; then exit 1; fi
if check && [[ "$(this)" == "-h ${BIND// / -h }" ]]; then exit 1; else exit 0; fi
}
case "$1" in
+2 -4
View File
@@ -168,10 +168,8 @@ samba_reload(){
samba_update(){
# 0 = update needed, 1 = no action
if samba_running; then
if check && [[ "$(this interfaces)" == "$BIND" ]]; then exit 1; else exit 0; fi
fi
exit 1
if ! samba_running; then exit 1; fi
if check && [[ "$(this interfaces)" == "$BIND" ]]; then exit 1; else exit 0; fi
}
case "$1" in
+2 -4
View File
@@ -100,10 +100,8 @@ sshd_reload(){
sshd_update(){
# 0 = update needed, 1 = no action
if sshd_running; then
if check && [[ "$(this ListenAddress)" == "${BIND[@]}" ]]; then exit 1; else exit 0; fi
fi
exit 1
if ! sshd_running; then exit 1; fi
if check && [[ "$(this ListenAddress)" == "${BIND[@]}" ]]; then exit 1; else exit 0; fi
}
case "$1" in