Skip to content

Commit

Permalink
Add icon, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidly271 committed Mar 12, 2017
1 parent 404b1c6 commit 9bf6208
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 21 deletions.
Binary file modified archive/ca.turbo-2017.03.11-x86_64-1.txz
Binary file not shown.
30 changes: 21 additions & 9 deletions plugins/ca.turbo.plg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!ENTITY name "ca.turbo">
<!ENTITY author "Andrew Zawadzki">
<!ENTITY version "2017.03.11">
<!ENTITY md5 "14a43d38dfc9efb96bcd889d3af3e792">
<!ENTITY md5 "a16345d0e51b66c0977bf30d20c801c8">
<!ENTITY launch "Settings/Turbo">
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
<!ENTITY github "Squidly271/ca.turbo">
Expand Down Expand Up @@ -61,6 +61,7 @@ The 'post-install' script
<INLINE>
<![CDATA[
<?
echo "Checking for running background process\n";
exec("mkdir -p /tmp/ca.turbo");
if ( is_file("/tmp/ca.turbo/PID") ) {
echo "Stopping CA Auto Turbo Mode\n";
Expand All @@ -74,25 +75,36 @@ The 'post-install' script
);
proc_open("/usr/local/emhttp/plugins/ca.turbo/scripts/auto_turbo.php",$descriptorspec,$pipes);
}
echo "\n";
echo "----------------------------------------------------\n";
echo " &name; has been installed.\n";
echo " Copyright 2017, Andrew Zawadzki\n";
echo " Version: &version; blah $version\n";
echo "----------------------------------------------------\n";
echo "\n";
?>
]]>
</INLINE>
</FILE>
<FILE Run="/bin/bash">
<INLINE>
echo "finished installing"
echo ""
echo "----------------------------------------------------"
echo " &name; has been installed."
echo " Copyright 2017, Andrew Zawadzki"
echo " Version: &version;"
echo "----------------------------------------------------"
echo ""
</INLINE>
</FILE>
<!--
The 'remove' script.
-->
<FILE Run="/usr/bin/php" Method="remove">
<INLINE>
<![CDATA[
<?
echo "Resetting Write Method to unRaid settings\n";
$unRaidVars = parse_ini_file("/var/local/emhttp/var.ini");
exec("/usr/local/sbin/mdcmd set md_write_method ".$unRaidVars['md_write_method']);
?>
]]>
</INLINE>
</FILE>

<FILE Run="/bin/bash" Method="remove">
<INLINE>
if [[ -e /tmp/ca.turbo/PID ]]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 6 additions & 12 deletions source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/include/exec.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,12 @@
@unlink($turboPaths['backgroundPID']);
}
logger("Starting Auto Turbo");
sleep(5);
# exec("/usr/local/emhttp/plugins/ca.turbo/scripts/startBackground.sh & > /dev/null | at NOW -M >/dev/null 2>&1");
$descriptorspec = array(
0 => array("pipe", "r"), // stdin is a pipe that the child will read from
1 => array("pipe", "w"), // stdout is a pipe that the child will write to
2 => array("file", "/tmp/error-output.txt", "a") // stderr is a file to write to
);
proc_open("/usr/local/emhttp/plugins/ca.turbo/scripts/auto_turbo.php",$descriptorspec,$pipes);




$descriptorspec = array(
0 => array("pipe", "r"), // stdin is a pipe that the child will read from
1 => array("pipe", "w"), // stdout is a pipe that the child will write to
2 => array("file", "/tmp/error-output.txt", "a") // stderr is a file to write to
);
proc_open("/usr/local/emhttp/plugins/ca.turbo/scripts/auto_turbo.php",$descriptorspec,$pipes);
}
echo "Settings Updated";
break;
Expand Down

0 comments on commit 9bf6208

Please sign in to comment.