aaden-cli 1.2.49 → 1.2.51

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,28 @@
1
+
2
+ cd /var/www/html/TseHost/ || exit
3
+ sudo cp tse-0.0.2.jar tse-0.0.2.jar.old
4
+ sudo wget http://innerken.com/Download/tse-0.0.3.jar
5
+ sudo mv tse-0.0.3.jar tse-0.0.2.jar
6
+ sudo service aaden-tse restart
7
+
8
+ echo "正在更新TSE,请等待60秒以确保TSE完全重启"
9
+ sleep 10
10
+ echo "还有50秒"
11
+ sleep 10
12
+ echo "40秒"
13
+ sleep 10
14
+ echo "30秒"
15
+ sleep 10
16
+ echo "20秒"
17
+ sleep 10
18
+ echo "10秒"
19
+ sleep 10
20
+ echo "TSE更新成功,开始导出TSE文件"
21
+ cd ~ || exit
22
+ wget 127.0.0.1:8014/exportTar
23
+ mv exportTar tseExport.tar
24
+ zip tseExport.tar.zip tseExport.tar
25
+ mv tseExport.tar.zip /var/www/html/Resource/tseExport.tar.zip
26
+
27
+
28
+ echo "非常好,如果上面没有报错的话,请到以下地址下载TSE文件 http://ik[xxxx].ngrok.aaden.io/Resource/tseExport.tar.zip"
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.48"};
58164
+ module.exports = {"i8":"1.2.50"};
58165
58165
 
58166
58166
  /***/ }),
58167
58167
 
@@ -58454,7 +58454,10 @@ program.command('set-do-not-send-zbon-when-print-true').action(editConfigIni(set
58454
58454
  program.command('set-do-not-send-zbon-when-print-false').action(editConfigIni(setConfig('Email', 'DoNotSendZbonWhenPrint', false)))
58455
58455
  program.command('set-auto-send-3in1-today-true').action(editConfigIni(setConfig('Email', 'AutoSend3in1Today', true)))
58456
58456
  program.command('set-auto-send-3in1-today-false').action(editConfigIni(setConfig('Email', 'AutoSend3in1Today', false)))
58457
+ program.command('set-print-change-table-bon-true').action(editConfigIni(setConfig('Bon', 'PrintChangeTableBon', true)))
58458
+ program.command('set-print-change-table-bon-false').action(editConfigIni(setConfig('Bon', 'PrintChangeTableBon', false)))
58457
58459
  program.command('auto-write-gdpdu').action(autoWriteGdpdu)
58460
+ program.command('export-tse').action(exportTse)
58458
58461
 
58459
58462
  if (program.debug) {
58460
58463
  debugInfo()
@@ -58582,6 +58585,11 @@ function fixCronJob() {
58582
58585
  runMultiple(files)
58583
58586
  }
58584
58587
 
58588
+ function exportTse() {
58589
+ const files = ['AadenDeploy/Utils/fixCronJob.sh']
58590
+ runMultiple(files)
58591
+ }
58592
+
58585
58593
 
58586
58594
  async function patch() {
58587
58595
  const configRoot = '/etc/aaden/config'
package/index.js CHANGED
@@ -73,7 +73,10 @@ program.command('set-do-not-send-zbon-when-print-true').action(editConfigIni(set
73
73
  program.command('set-do-not-send-zbon-when-print-false').action(editConfigIni(setConfig('Email', 'DoNotSendZbonWhenPrint', false)))
74
74
  program.command('set-auto-send-3in1-today-true').action(editConfigIni(setConfig('Email', 'AutoSend3in1Today', true)))
75
75
  program.command('set-auto-send-3in1-today-false').action(editConfigIni(setConfig('Email', 'AutoSend3in1Today', false)))
76
+ program.command('set-print-change-table-bon-true').action(editConfigIni(setConfig('Bon', 'PrintChangeTableBon', true)))
77
+ program.command('set-print-change-table-bon-false').action(editConfigIni(setConfig('Bon', 'PrintChangeTableBon', false)))
76
78
  program.command('auto-write-gdpdu').action(autoWriteGdpdu)
79
+ program.command('export-tse').action(exportTse)
77
80
 
78
81
  if (program.debug) {
79
82
  debugInfo()
@@ -201,6 +204,11 @@ function fixCronJob() {
201
204
  runMultiple(files)
202
205
  }
203
206
 
207
+ function exportTse() {
208
+ const files = ['AadenDeploy/Utils/fixCronJob.sh']
209
+ runMultiple(files)
210
+ }
211
+
204
212
 
205
213
  async function patch() {
206
214
  const configRoot = '/etc/aaden/config'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aaden-cli",
3
- "version": "1.2.49",
3
+ "version": "1.2.51",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,28 +0,0 @@
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/local/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