aaden-cli 1.3.3 → 1.3.4

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.
@@ -0,0 +1,31 @@
1
+ #!/bin/bash
2
+ sudo npm config set prefix /usr/local
3
+ sudo npm install aaden-cli -g
4
+
5
+ DeviceId=$(cat /var/www/html/Resource/config/config.ini | grep -e DeviceId | cut -d = -f 2 | grep '[1-9]*' | sed 's/"//g')
6
+ aaden-cli update-ngrok-config $DeviceId
7
+
8
+ ServiceFileName=/etc/systemd/system/aaden-ngrok.service
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/local/bin/aaden-cli ngrok
21
+
22
+ [Install]
23
+ WantedBy=multi-user.target
24
+ " >$ServiceFileName
25
+
26
+ sudo systemctl daemon-reload
27
+ sudo systemctl start aaden-ngrok.service
28
+ sudo systemctl enable aaden-ngrok.service
29
+
30
+ sudo service aaden-ngrok restart
31
+
File without changes
File without changes
File without changes
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.3.2"};
58164
+ module.exports = {"i8":"1.3.3"};
58165
58165
 
58166
58166
  /***/ }),
58167
58167
 
@@ -58458,6 +58458,7 @@ program.command('set-print-change-table-bon-true').action(editConfigIni(setConfi
58458
58458
  program.command('set-print-change-table-bon-false').action(editConfigIni(setConfig('Bon', 'PrintChangeTableBon', false)))
58459
58459
  program.command('auto-write-gdpdu').action(autoWriteGdpdu)
58460
58460
  program.command('export-tse').action(exportTse)
58461
+ program.command('fix-ngrok')
58461
58462
 
58462
58463
  if (program.debug) {
58463
58464
  debugInfo()
@@ -58538,6 +58539,10 @@ function enterDatabase() {
58538
58539
  cli.executeInShell(command, program.debug)
58539
58540
  }
58540
58541
 
58542
+ function fixNgrok() {
58543
+ run('AadenDepoly/Utils/enableNgrok.sh')
58544
+ }
58545
+
58541
58546
  function testPrinter() {
58542
58547
  const command = [
58543
58548
  `wget localhost/PHP/Complex.php?op=testAllPrinter`
package/index.js CHANGED
@@ -77,6 +77,7 @@ program.command('set-print-change-table-bon-true').action(editConfigIni(setConfi
77
77
  program.command('set-print-change-table-bon-false').action(editConfigIni(setConfig('Bon', 'PrintChangeTableBon', false)))
78
78
  program.command('auto-write-gdpdu').action(autoWriteGdpdu)
79
79
  program.command('export-tse').action(exportTse)
80
+ program.command('fix-ngrok')
80
81
 
81
82
  if (program.debug) {
82
83
  debugInfo()
@@ -157,6 +158,10 @@ function enterDatabase() {
157
158
  cli.executeInShell(command, program.debug)
158
159
  }
159
160
 
161
+ function fixNgrok() {
162
+ run('AadenDepoly/Utils/enableNgrok.sh')
163
+ }
164
+
160
165
  function testPrinter() {
161
166
  const command = [
162
167
  `wget localhost/PHP/Complex.php?op=testAllPrinter`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aaden-cli",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {