Update app.js
This commit is contained in:
@@ -59,8 +59,8 @@ app.get("/rp", (req, res) => {
|
|||||||
app.get("/list/key", (req, res) => {
|
app.get("/list/key", (req, res) => {
|
||||||
const listCommands = `
|
const listCommands = `
|
||||||
USERNAME=$(whoami | tr '[:upper:]' '[:lower:]')
|
USERNAME=$(whoami | tr '[:upper:]' '[:lower:]')
|
||||||
|
USERNAME1=$(whoami)
|
||||||
FULL_PATH="\${HOME}/domains/\${USERNAME}.serv00.net/logs/list.txt"
|
FULL_PATH="/home/\${USERNAME1}/domains/\${USERNAME}.serv00.net/logs/list.txt"
|
||||||
cat "\$FULL_PATH"
|
cat "\$FULL_PATH"
|
||||||
`;
|
`;
|
||||||
exec(listCommands, (err, stdout, stderr) => {
|
exec(listCommands, (err, stdout, stderr) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user