just none of the changes have any effect.
The plugin uses omv-mkconf. It would need to be ported to salt or just execute the shell script from php.
just none of the changes have any effect.
The plugin uses omv-mkconf. It would need to be ported to salt or just execute the shell script from php.
Most plugins from 4.x or earlier won't work on 5.x.
Yes. A quick and dirty port would be changing every line starting with
$cmd = new \OMV\System\Process("omv-mkconf","
and replace with:
$cmd = new \OMV\System\Process("/usr/share/openmediavault/mkconf/
But really, all of those scripts just call the script that they are calling.
Aaron, I've tried grep to find the file(s) in which this change would have to be made without success. Can you point me to the correct file(s)? I really liked this functionality in omv4
Thank you!
Can you point me to the correct file(s)?
Only one file.
aaron@omv5dev:~/git/openmediavault-theme$ grep -r omv-mkconf *
usr/share/openmediavault/engined/rpc/theme.inc: $cmd = new \OMV\System\Process("omv-mkconf", "apply_theme", escapeshellarg($params['theme_select']));
usr/share/openmediavault/engined/rpc/theme.inc: $cmd = new \OMV\System\Process("omv-mkconf", "apply_logo", escapeshellarg($params["logo_url"]));
usr/share/openmediavault/engined/rpc/theme.inc: $cmd = new \OMV\System\Process("omv-mkconf", "apply_header_text", escapeshellarg($params["header_text"]));
usr/share/openmediavault/engined/rpc/theme.inc: $cmd = new \OMV\System\Process("omv-mkconf", "reset_logo");
usr/share/openmediavault/engined/rpc/theme.inc: $cmd = new \OMV\System\Process("omv-mkconf", "apply_header_bg_color", escapeshellarg($params["header_bg_color"]));
usr/share/openmediavault/engined/rpc/theme.inc: $cmd = new \OMV\System\Process("omv-mkconf", "reset_header_bg_color");
usr/share/openmediavault/engined/rpc/theme.inc: $cmd = new \OMV\System\Process("omv-mkconf", "apply_header_bg_image", escapeshellarg($params["header_bg_image"]));
usr/share/openmediavault/engined/rpc/theme.inc: $cmd = new \OMV\System\Process("omv-mkconf", "reset_header_bg_image");
usr/share/openmediavault/engined/rpc/theme.inc: $cmd = new \OMV\System\Process("omv-mkconf", "apply_font_size_weight", escapeshellarg($params["font_size"]), escapeshellarg($params["font_weight"]));
usr/share/openmediavault/engined/rpc/theme.inc: $cmd = new \OMV\System\Process("omv-mkconf", "reset_font_size_weight");
Only one file
Thank you, sir!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!