Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Aug 10, 2023
1 parent 387f5db commit f3fe9f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hooks/pluginable.php
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,8 @@ function str_starts_with($haystack, $needle) {
$hcpp->add_action( 'priv_update_sys_queue', function( $args ) {

// Check last reboot time
if ( ! isset( $args[0] ) ) return $args;
if ( $args[0] != 'restart' ) return $args;
$file = '/usr/local/hestia/data/hcpp/last_reboot.txt';
$last = shell_exec("who -b");
if ( !file_exists( $file ) || file_get_contents( $file ) !== $last ) {
Expand Down

0 comments on commit f3fe9f1

Please sign in to comment.