Skip to content

Commit

Permalink
update date
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidly271 committed Mar 12, 2017
1 parent 24ce54f commit 2f1ccae
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions plugins/ca.turbo.plg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "ca.turbo">
<!ENTITY author "Andrew Zawadzki">
<!ENTITY version "2017.02.21">
<!ENTITY version "2017.03.11">
<!ENTITY md5 "ff506a85658b93a8b4a5625c8b94b6f2">
<!ENTITY launch "Settings/Turbo">
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
Expand Down Expand Up @@ -57,16 +57,33 @@ The 'source' file.
<!--
The 'post-install' script
-->
<FILE Run="/bin/bash">
<FILE Run="/usr/bin/php">
<INLINE>
mkdir -p /tmp/ca.docker.autostart
echo ""
echo "----------------------------------------------------"
echo " &name; has been installed."
echo " Copyright 2017, Andrew Zawadzki"
echo " Version: &version;"
echo "----------------------------------------------------"
echo ""
<?PHP
$version = &version;
<![CDATA[
exec("mkdir -p /tmp/ca.turbo");
if ( is_file("/tmp/ca.turbo/PID") ) {
echo "Stopping CA Auto Turbo Mode\n";
$PID = file_get_contents($turboPaths['backgroundPID']);
posix_kill($PID,SIGKILL);
@unlink($turboPaths['backgroundPID']);
$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 "\n";
echo "----------------------------------------------------\n";
echo " &name; has been installed.\n";
echo " Copyright 2015-2016, Andrew Zawadzki\n";
echo " Version: &version; blah $version\n";
echo "----------------------------------------------------\n";
echo "\n";
]]>
?>
</INLINE>
</FILE>

Expand Down

0 comments on commit 2f1ccae

Please sign in to comment.