mirror of
https://github.com/unraid/webgui.git
synced 2026-05-14 08:09:52 -05:00
scripts dutchification - batch 1
This commit is contained in:
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user