Skip to content

Commit

Permalink
fix uninstall. continue getting to install
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidly271 committed Mar 12, 2017
1 parent 2dd6f8b commit 404b1c6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions plugins/ca.turbo.plg
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ The 'post-install' script
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']);
$PID = file_get_contents("/tmp/ca.turbo/PID");
posix_kill($PID,SIGKILL);
@unlink($turboPaths['backgroundPID']);
@unlink("/tmp/ca.turbo/PID");
$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
Expand Down Expand Up @@ -95,6 +95,14 @@ The 'remove' script.
-->
<FILE Run="/bin/bash" Method="remove">
<INLINE>
if [[ -e /tmp/ca.turbo/PID ]]
then
logger "Stopping CA Turbo Mode"
PID=`cat /tmp/ca.turbo/PID`
logger "Terminating $PID"
kill $PID
fi

removepkg &name;-&version;-x86_64-1
rm -rf &plugdir;
rm -rf /boot/config/plugins/&name;
Expand Down

0 comments on commit 404b1c6

Please sign in to comment.