Skip to content

Commit ad806b6

Browse files
committed
update
1 parent 11e8040 commit ad806b6

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

web/Modules/Microweber/Filament/Clusters/Microweber/Pages/Utilities.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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')

web/Modules/Microweber/Filament/Clusters/Microweber/Pages/Version.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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();

web/mysql-check-and-restart.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

0 commit comments

Comments
 (0)