File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Modules/Microweber/Filament/Clusters/Microweber/Pages Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ protected function getHeaderActions(): array
108108 ->modalHeading ('Microweber Vendor Assets Symlink for All Installations ' )
109109 ->modalDescription ('This will run "microweber:vendor-assets-symlink" on all Microweber installations. This may take some time. ' )
110110 ->action (function () {
111- RunInstallationCommands::dispatchSync ('microweber:vendor-assets-symlink ' );
111+ RunInstallationCommands::dispatch ('microweber:vendor-assets-symlink ' );
112112
113113 Notification::make ()
114114 ->title ('Microweber Vendor Assets Symlink Job Dispatched ' )
@@ -124,7 +124,7 @@ protected function getHeaderActions(): array
124124 ->modalHeading ('Microweber Reload Modules for All Installations ' )
125125 ->modalDescription ('This will run "microweber:reload-database" on all Microweber installations. This may take some time. ' )
126126 ->action (function () {
127- RunInstallationCommands::dispatchSync ('microweber:reload-database ' );
127+ RunInstallationCommands::dispatch ('microweber:reload-database ' );
128128
129129 Notification::make ()
130130 ->title ('Microweber Reload Database Job Dispatched ' )
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ public function checkForUpdates()
8282 }
8383
8484 $ debug = 1 ;
85+ $ debug = 0 ;
8586 if ($ debug ) {
8687 $ dm = new DownloadMicroweber ();
8788 $ dm ->handle ();
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+
4+ if ! systemctl is-active --quiet mysql; then
5+ echo " $( date) : MySQL is down. Restarting..." >> /var/log/mysql_monitor.log
6+ systemctl enable mysql
7+ systemctl restart mysql
8+ else
9+ echo " $( date) : MySQL is running."
10+ fi
You can’t perform that action at this time.
0 commit comments