Skip to content

Commit

Permalink
refresh fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Jan 9, 2021
1 parent c206db2 commit 7ff9856
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Workbench/scripts/refresh-this-instance.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

. /etc/profile

DELETE_VOLUMES="false"

if [[ $1 == "-dv" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions Workbench/scripts/refreshListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
echo ' [x] Received ', $msg->body, "\n";
if ($msg->body == "REFRESH_THIS_INSTANCE") {
echo "Received REFRESH message!\n";
shell_exec( "/csp-tap/InCommonTAP-Examples/Workbench/scripts/refresh-this-instance.sh" );
exec( "/csp-tap/InCommonTAP-Examples/Workbench/scripts/refresh-this-instance.sh" );
}
if ($msg->body == "REFRESH_THIS_INSTANCE_DELETE_DATA") {
echo "Received REFRESH-DELETE message!\n";
shell_exec( "/csp-tap/InCommonTAP-Examples/Workbench/scripts/refresh-this-instance.sh -dv" );
exec( "/csp-tap/InCommonTAP-Examples/Workbench/scripts/refresh-this-instance.sh -dv" );
}
};

Expand Down

0 comments on commit 7ff9856

Please sign in to comment.