setup-kapelu 3.0.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +18 -5
- package/package.json +14 -57
- package/script/setup.sh +4 -3
package/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const { execSync } = require("child_process");
|
|
4
4
|
const pkg = require("./package.json");
|
|
5
|
+
const { clear } = require("console");
|
|
5
6
|
|
|
6
7
|
function exists(cmd) {
|
|
7
8
|
try {
|
|
@@ -67,11 +68,23 @@ try {
|
|
|
67
68
|
console.log("🚀 Ejecutando install.sh\n");
|
|
68
69
|
execSync(`bash ${__dirname}/install.sh`, { stdio: "inherit" });
|
|
69
70
|
} catch (err) {
|
|
70
|
-
console.
|
|
71
|
-
process.exit(1);
|
|
72
|
-
}
|
|
71
|
+
console.clear();
|
|
73
72
|
|
|
73
|
+
console.error("\n❌ Error ejecutando Post-Install\n");
|
|
74
74
|
|
|
75
|
+
if (err.status) {
|
|
76
|
+
console.error("Código de salida:", err.status);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (err.cmd) {
|
|
80
|
+
console.error("Comando:", err.cmd);
|
|
81
|
+
}
|
|
75
82
|
|
|
76
|
-
|
|
77
|
-
|
|
83
|
+
if (err.stderr) {
|
|
84
|
+
console.error(err.stderr.toString());
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
console.error(err.message);
|
|
88
|
+
|
|
89
|
+
process.exit(1);
|
|
90
|
+
}
|
package/package.json
CHANGED
|
@@ -1,75 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
2
|
"name": "setup-kapelu",
|
|
4
|
-
|
|
5
|
-
"version": "3.0.2",
|
|
6
|
-
|
|
3
|
+
"version": "3.2.0",
|
|
7
4
|
"description": "Script post-install de Ubuntu",
|
|
8
|
-
|
|
9
5
|
"type": "commonjs",
|
|
10
|
-
|
|
11
6
|
"bin": {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"kapelu": "index.js"
|
|
15
|
-
|
|
7
|
+
"kapelu": "index.js"
|
|
16
8
|
},
|
|
17
|
-
|
|
18
9
|
"repository": {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"type": "git",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"url": "git+https://github.com/Kapelu/kape-setup.git"
|
|
25
|
-
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/Kapelu/kape-setup.git"
|
|
26
12
|
},
|
|
27
|
-
|
|
28
13
|
"keywords": [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"setup",
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"post-install",
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"cli",
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"script"
|
|
44
|
-
|
|
14
|
+
"ubuntu",
|
|
15
|
+
"setup",
|
|
16
|
+
"post-install",
|
|
17
|
+
"cli",
|
|
18
|
+
"script"
|
|
45
19
|
],
|
|
46
|
-
|
|
47
20
|
"author": "Daniel Calderon",
|
|
48
|
-
|
|
49
21
|
"license": "ISC",
|
|
50
|
-
|
|
51
22
|
"bugs": {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"url": "https://github.com/Kapelu/kape-setup/issues"
|
|
55
|
-
|
|
23
|
+
"url": "https://github.com/Kapelu/kape-setup/issues"
|
|
56
24
|
},
|
|
57
|
-
|
|
58
25
|
"homepage": "https://github.com/Kapelu/kape-setup#readme",
|
|
59
|
-
|
|
60
26
|
"files": [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"install.sh",
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"script/",
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"config/"
|
|
73
|
-
|
|
27
|
+
"cli.js",
|
|
28
|
+
"install.sh",
|
|
29
|
+
"script/",
|
|
30
|
+
"config/"
|
|
74
31
|
]
|
|
75
32
|
}
|
package/script/setup.sh
CHANGED
|
@@ -148,10 +148,12 @@ fi
|
|
|
148
148
|
|
|
149
149
|
system_update() {
|
|
150
150
|
clear
|
|
151
|
-
echo -e "${COLOR[green]}🔄 Actualizando sistema${COLOR[reset]}"
|
|
151
|
+
echo -e " ${COLOR[green]}🔄 Actualizando sistema${COLOR[reset]}"
|
|
152
|
+
echo -e " ${COLOR[green]}⚠️ Dar autorización Root‼️ ${COLOR[reset]}"
|
|
152
153
|
sudo apt update -y
|
|
153
154
|
sudo apt upgrade -y
|
|
154
155
|
sudo apt full-upgrade -y
|
|
156
|
+
|
|
155
157
|
}
|
|
156
158
|
|
|
157
159
|
########################################
|
|
@@ -440,8 +442,7 @@ install_snap_tools &
|
|
|
440
442
|
|
|
441
443
|
wait
|
|
442
444
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
+
setup_ssh
|
|
445
446
|
system_cleanup
|
|
446
447
|
|
|
447
448
|
ELAPSED=$(( SECONDS - START ))
|