feat(cluster): real-time auto-sync on apply_config + 5min cron periodic sync
This commit is contained in:
1 parent
4c49cf8e1c
commit
3f29ac6d2e
3 files changed
+71
-3
No files matched your search
@@ -488,6 +488,13 @@ EOF
|
||||
chmod 0644 /etc/cron.d/nexus-backup
|
||||
touch /var/log/nexus_backup.log && chown www-data:asterisk /var/log/nexus_backup.log && chmod 664 /var/log/nexus_backup.log
|
||||
|
||||
# Cron synchronisation Cluster HA toutes les 5 minutes
|
||||
cat << 'EOF' > /etc/cron.d/nexus-cluster-sync
|
||||
# Synchronisation périodique du cluster NexusPBX HA vers le nœud Backup
|
||||
*/5 * * * * www-data /usr/bin/php /var/www/nexus-pbx/scripts/nexus_cluster_sync.php >> /var/log/nexus_cluster.log 2>&1
|
||||
EOF
|
||||
chmod 0644 /etc/cron.d/nexus-cluster-sync
|
||||
|
||||
# CLI symlinks
|
||||
chmod +x "$TARGET_DIR/scripts/nexus-firewall" "$TARGET_DIR/scripts/nexus-banner.sh" "$TARGET_DIR/scripts/update.sh" "$TARGET_DIR/scripts/nexus-cluster"
|
||||
chmod +x "$TARGET_DIR"/scripts/cluster/*.sh 2>/dev/null || true
|
||||
|
||||
Reference in new issue
Block a user