File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ public function hcpp_invoke_plugin( $args ) {
93
93
$ latest_pkg = $ hcpp ->getLeftMost ( $ latest_pkg , "\n" );
94
94
$ current_pkg = trim ( $ hcpp ->delLeftMost ( $ parse . '@ ' , '@ ' ) );
95
95
$ current_pkg = $ hcpp ->getLeftMost ( $ current_pkg , "\n" );
96
+ $ hcpp ->log ( "Node-RED on v $ major: $ current_pkg -> $ latest_pkg " );
96
97
97
98
// Check if node-red is missing or outdated
98
99
if ( $ current_pkg !== $ latest_pkg ) {
@@ -206,12 +207,9 @@ public function hcpp_invoke_plugin( $args ) {
206
207
/**
207
208
* Check daily for Node-RED updates and install them.
208
209
*/
209
- public function v_update_sys_queue ( $ args ) {
210
+ public function nodeapp_autoupdate ( ) {
210
211
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 ;
213
212
$ hcpp ->run ( 'v-invoke-plugin nodered_install ' );
214
- return $ args ;
215
213
}
216
214
217
215
}
You can’t perform that action at this time.
0 commit comments