Fix join and ctdb node re-resolve
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -7,4 +7,4 @@ SHELL=/bin/bash
|
||||
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
|
||||
# | | | | |
|
||||
# * * * * * user-name command to be executed
|
||||
* * * * * root ctdb reloadnodes
|
||||
* * * * * root /usr/bin/ctdb reloadnodes
|
||||
@@ -2,9 +2,7 @@
|
||||
|
||||
#
|
||||
# TODO
|
||||
# * on startup resolveNodes.sh usually resolves just itself and 'ctdb reloadnodes' must be called on some node
|
||||
# * maybe remove ctdb-volatile
|
||||
# * 'net ads info' is not a proper join status check
|
||||
|
||||
# Loosely based on https://github.com/fjudith/docker-samba-join-ad/tree/master/sssd
|
||||
|
||||
@@ -172,8 +170,8 @@ if ! net ads testjoin; then
|
||||
# Join
|
||||
net ads join --no-dns-updates -U"$ADMIN_ACCOUNT"%"$ADMIN_PASSWORD"
|
||||
|
||||
((/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf -j /tmp/sp.pid)&)
|
||||
sleep 30
|
||||
((/usr/bin/supervisord -c /root/supervisord.samba.conf -j /tmp/sp.pid)&)
|
||||
sleep 10
|
||||
|
||||
# Allow adding printer drivers for Administrator
|
||||
# Note: These commands require running winbind that resolves the group name and dcerpcd that accesses printers list
|
||||
|
||||
Reference in New Issue
Block a user