Skip to content

Commit 722f234

Browse files
committed
update
1 parent d41c0d2 commit 722f234

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nodered.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function hcpp_invoke_plugin( $args ) {
9393
$latest_pkg = $hcpp->getLeftMost( $latest_pkg, "\n" );
9494
$current_pkg = trim( $hcpp->delLeftMost( $parse . '@', '@' ) );
9595
$current_pkg = $hcpp->getLeftMost( $current_pkg, "\n" );
96+
$hcpp->log( "Node-RED on v$major: $current_pkg -> $latest_pkg" );
9697

9798
// Check if node-red is missing or outdated
9899
if ( $current_pkg !== $latest_pkg ) {
@@ -206,12 +207,9 @@ public function hcpp_invoke_plugin( $args ) {
206207
/**
207208
* Check daily for Node-RED updates and install them.
208209
*/
209-
public function v_update_sys_queue( $args ) {
210+
public function nodeapp_autoupdate() {
210211
global $hcpp;
211-
if ( ! (isset( $args[0] ) && trim( $args[0] ) == 'daily') ) return $args;
212-
if ( strpos( $hcpp->run('v-list-sys-hestia-autoupdate'), 'Enabled') == false ) return $args;
213212
$hcpp->run( 'v-invoke-plugin nodered_install' );
214-
return $args;
215213
}
216214

217215
}

0 commit comments

Comments
 (0)