mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 16:29:45 -05:00
Plugin system update
This commit is contained in:
@@ -55,6 +55,7 @@ function error_desc($code) {
|
||||
//
|
||||
function done() {
|
||||
write('_DONE_');
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// Function to write either to console (echo) or nchan (curl)
|
||||
@@ -208,7 +209,6 @@ if ($method == 'checkall') {
|
||||
exec(realpath($argv[0])." check $name >/dev/null");
|
||||
}
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// language updateall
|
||||
@@ -231,7 +231,6 @@ if ($method == 'updateall') {
|
||||
}
|
||||
}
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// MAIN - two arguments
|
||||
@@ -272,7 +271,6 @@ if ($method == 'install') {
|
||||
write("language: $lang language pack installed\n");
|
||||
logger("language: $lang language pack installed");
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// language check [language]
|
||||
@@ -343,7 +341,6 @@ if ($method == 'update') {
|
||||
write("language: $lang language pack updated\n");
|
||||
logger("language: $lang language pack updated");
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// language remove [language]
|
||||
@@ -365,7 +362,6 @@ if ($method == 'remove') {
|
||||
write("language: $lang language pack removed\n");
|
||||
logger("language: $lang language pack removed");
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// return attribute
|
||||
|
||||
@@ -19,6 +19,7 @@ $call = ['plg' => 'plugin', 'xml' => 'language'];
|
||||
|
||||
function done() {
|
||||
write('_DONE_');
|
||||
exit(0);
|
||||
}
|
||||
function write($message){
|
||||
global $console;
|
||||
|
||||
@@ -166,6 +166,7 @@ function error_desc($code) {
|
||||
//
|
||||
function done() {
|
||||
write('_DONE_');
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// Function to write either to console (echo) or nchan (curl)
|
||||
@@ -486,7 +487,6 @@ if ($method == 'checkall') {
|
||||
exec("$cmd check $plugin >/dev/null");
|
||||
}
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// plugin updateall
|
||||
@@ -514,7 +514,6 @@ if ($method == 'updateall') {
|
||||
}
|
||||
}
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// plugin checkos
|
||||
@@ -535,7 +534,6 @@ if ($method == 'checkos') {
|
||||
exec("$cmd check $plugin >/dev/null");
|
||||
}
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// MAIN - two or three arguments
|
||||
@@ -662,7 +660,6 @@ if ($method == 'install') {
|
||||
// run hook scripts for post processing
|
||||
post_hooks();
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// plugin check [plugin]
|
||||
@@ -762,7 +759,6 @@ if ($method == 'update') {
|
||||
// run hook scripts for post processing
|
||||
post_hooks();
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// plugin remove [plugin]
|
||||
@@ -796,7 +792,6 @@ if ($method == 'remove') {
|
||||
// run hook scripts for post processing
|
||||
post_hooks();
|
||||
done();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// return attribute
|
||||
|
||||
Reference in New Issue
Block a user