aaden-cli 1.2.33 → 1.2.35

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/dist/index.js CHANGED
@@ -58161,7 +58161,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
58161
58161
  /***/ ((module) => {
58162
58162
 
58163
58163
  "use strict";
58164
- module.exports = {"i8":"1.2.32"};
58164
+ module.exports = {"i8":"1.2.34"};
58165
58165
 
58166
58166
  /***/ }),
58167
58167
 
@@ -58681,7 +58681,7 @@ async function startNgrokService() {
58681
58681
  const command = [
58682
58682
  ...getPrivilegeCMD('AadenDeploy/ngrok/ngrok'),
58683
58683
  'cd AadenDeploy/ngrok',
58684
- './ngrok -config=/etc/aaden/ngrok-config.yml start-all'
58684
+ './ngrok -config=/etc/aaden/ngrok-config.yml start-all --log=/etc/aaden/ngrok.log'
58685
58685
  ]
58686
58686
  cli.executeInShell(command, program.debug)
58687
58687
  }
@@ -1,3 +1,3 @@
1
1
  aaden-cli fix-cron-job
2
2
  echo "Innerken322." | sudo -S su
3
- apt install php-zip
3
+ apt install php-zip -y
package/index.js CHANGED
@@ -300,7 +300,7 @@ async function startNgrokService() {
300
300
  const command = [
301
301
  ...getPrivilegeCMD('AadenDeploy/ngrok/ngrok'),
302
302
  'cd AadenDeploy/ngrok',
303
- './ngrok -config=/etc/aaden/ngrok-config.yml start-all'
303
+ './ngrok -config=/etc/aaden/ngrok-config.yml start-all --log=/etc/aaden/ngrok.log'
304
304
  ]
305
305
  cli.executeInShell(command, program.debug)
306
306
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aaden-cli",
3
- "version": "1.2.33",
3
+ "version": "1.2.35",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -0,0 +1,28 @@
1
+ #!/bin/bash
2
+
3
+ DeviceId=$(cat /var/www/html/Resource/config/config.ini | grep -e DeviceId | cut -d = -f 2 | grep '[1-9]*' | sed 's/"//g')
4
+ aaden-cli update-ngrok-config $DeviceId
5
+ ln -s /usr/bin/aaden-cli /usr/local/bin/aaden-cli
6
+
7
+ ServiceFileName=/etc/systemd/system/aaden-ngrok.service
8
+
9
+ sudo touch $ServiceFileName
10
+ sudo chmod 777 $ServiceFileName
11
+ echo -e "
12
+ [Unit]
13
+ Description=Ngrok Service For Aaden
14
+
15
+ [Service]
16
+ Type=simple
17
+ Restart=always
18
+ RestartSec=1
19
+ User=root
20
+ ExecStart=/usr/bin/aaden-cli ngrok
21
+
22
+ [Install]
23
+ WantedBy=multi-user.target
24
+ " >$ServiceFileName
25
+
26
+ sudo systemctl start aaden-ngrok.service
27
+ sudo systemctl enable aaden-ngrok.service
28
+ sudo systemctl daemon-reload