Change chmod type
This commit is contained in:
parent
34b5300dcc
commit
17cd4bb72c
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -6,7 +6,7 @@ const child_process = require("child_process")
|
||||||
const config = require("./config.json")
|
const config = require("./config.json")
|
||||||
var globalTerm = null;
|
var globalTerm = null;
|
||||||
var curWorker = null;
|
var curWorker = null;
|
||||||
child_process.execSync("chmod 760 *")
|
child_process.execSync("chmod 700 *")
|
||||||
|
|
||||||
var client = mcp.createClient({
|
var client = mcp.createClient({
|
||||||
username:"MCTerminal",
|
username:"MCTerminal",
|
||||||
|
@ -93,7 +93,7 @@ client.on("login", function(){
|
||||||
client.queue.push("&eMCTerminal &astarted! Prefix your messages with &e>&a to execute them in the terminal! You can also install packages with &e>pkg add&a!")
|
client.queue.push("&eMCTerminal &astarted! Prefix your messages with &e>&a to execute them in the terminal! You can also install packages with &e>pkg add&a!")
|
||||||
client.queue.push("&aThe terminal is starting, please wait...")
|
client.queue.push("&aThe terminal is starting, please wait...")
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
child_process.execSync("chmod 760 *")
|
child_process.execSync("chmod 700 *")
|
||||||
var term = child_process.exec(`sudo su ${config.user}`, function(err, stdout, stderr) {
|
var term = child_process.exec(`sudo su ${config.user}`, function(err, stdout, stderr) {
|
||||||
console.log("Process exited.")
|
console.log("Process exited.")
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
|
|
Loading…
Reference in a new issue