fix typo
This commit is contained in:
parent
0685d2e4c8
commit
f01184a13e
@ -1,3 +1,4 @@
|
|||||||
|
import { Client } from 'ssh2';
|
||||||
export const handler = async (event) => {
|
export const handler = async (event) => {
|
||||||
let result = "did not send";
|
let result = "did not send";
|
||||||
if (event.subject == "You have deliveries" || event.subject == "You have a delivery"){
|
if (event.subject == "You have deliveries" || event.subject == "You have a delivery"){
|
||||||
@ -5,7 +6,6 @@ export const handler = async (event) => {
|
|||||||
console.info("Matched Subject");
|
console.info("Matched Subject");
|
||||||
const command = `ssh ${process.env.INTERNAL_HOST} "/usr/bin/tmux neww -d \"/usr/bin/mplayer '${process.env.INTERNAL_FILE}'\""`;
|
const command = `ssh ${process.env.INTERNAL_HOST} "/usr/bin/tmux neww -d \"/usr/bin/mplayer '${process.env.INTERNAL_FILE}'\""`;
|
||||||
console.info("Import ssh2");
|
console.info("Import ssh2");
|
||||||
import { Client } from 'ssh2';
|
|
||||||
const connection = new Client();
|
const connection = new Client();
|
||||||
console.info("Set Conn Info");
|
console.info("Set Conn Info");
|
||||||
connection.on('ready', () => {
|
connection.on('ready', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user