aaden-cli 1.1.106 → 1.1.111

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
@@ -18248,7 +18248,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
18248
18248
  /***/ ((module) => {
18249
18249
 
18250
18250
  "use strict";
18251
- module.exports = {"i8":"1.1.105"};
18251
+ module.exports = {"i8":"1.1.110"};
18252
18252
 
18253
18253
  /***/ }),
18254
18254
 
@@ -18957,7 +18957,7 @@ async function enableMilePay () {
18957
18957
  'wget https://innerken.com/biomace/biomace.sh',
18958
18958
  'wget https://innerken.com/biomace/logback-spring-biomace.xml',
18959
18959
  'wget https://innerken.com/biomace/application.yml',
18960
- 'wget https://innerken.com/biomace/biomace-0.0.1-SNAPSHOT.jar',
18960
+ 'axel -n 6 https://innerken.com/biomace/biomace-0.0.1-SNAPSHOT.jar',
18961
18961
  'wget https://innerken.com/biomace/mile-pay-pay-method.sql',
18962
18962
  'mkdir log',
18963
18963
  'cd /etc/systemd/system',
@@ -18970,8 +18970,8 @@ async function startService () {
18970
18970
  const deviceId = getMyDeviceId()
18971
18971
  if (deviceId === -1) return
18972
18972
  const filePath = '/home/aaden/biomace/application.yml'
18973
- const res = fs.readFileSync(filePath)
18974
- const out = res.replace('identifier: IK0001', 'identifier: ' + deviceId)
18973
+ const res = fs.readFileSync(filePath).toString()
18974
+ const out = res.replace('identifier: IK0001', 'identifier: IK' + deviceId)
18975
18975
  fs.writeFileSync(filePath, out)
18976
18976
 
18977
18977
  cli.executeInShell([
@@ -0,0 +1,15 @@
1
+ #!/bin/bash
2
+ echo 'Start to Config cronjob.'
3
+ cd || exit
4
+ touch conf
5
+ echo "0 */12 * * * wget -O /dev/null http://localhost/PHP/CloudStuff/ReportAllTerminalData.php" >>conf
6
+ echo "* * * * * wget -O /dev/null http://localhost/PHP/CloudStuff/FetchOrdersForAllTerminal.php" >>conf
7
+ echo "* * * * * wget -O /dev/null http://localhost/PHP/AccessLog.php?op=reportStatus" >>conf
8
+ echo "* * * * * /var/www/html/crontab.sh > /dev/null" >>conf
9
+ echo "59 4 1 * * wget -O /dev/null http://localhost/PHP/Datev.php?op=autoSendDatevCsv > /dev/null" >>conf
10
+ echo "Innerken322." | sudo -S su aaden
11
+ crontab -r
12
+ crontab conf
13
+ echo "Innerken322." | sudo -S rm -f conf
14
+ echo "END CONFIG"
15
+ crontab -l
package/index.js CHANGED
@@ -545,7 +545,7 @@ async function enableMilePay () {
545
545
  'wget https://innerken.com/biomace/biomace.sh',
546
546
  'wget https://innerken.com/biomace/logback-spring-biomace.xml',
547
547
  'wget https://innerken.com/biomace/application.yml',
548
- 'wget https://innerken.com/biomace/biomace-0.0.1-SNAPSHOT.jar',
548
+ 'axel -n 6 https://innerken.com/biomace/biomace-0.0.1-SNAPSHOT.jar',
549
549
  'wget https://innerken.com/biomace/mile-pay-pay-method.sql',
550
550
  'mkdir log',
551
551
  'cd /etc/systemd/system',
@@ -558,8 +558,8 @@ async function startService () {
558
558
  const deviceId = getMyDeviceId()
559
559
  if (deviceId === -1) return
560
560
  const filePath = '/home/aaden/biomace/application.yml'
561
- const res = fs.readFileSync(filePath)
562
- const out = res.replace('identifier: IK0001', 'identifier: ' + deviceId)
561
+ const res = fs.readFileSync(filePath).toString()
562
+ const out = res.replace('identifier: IK0001', 'identifier: IK' + deviceId)
563
563
  fs.writeFileSync(filePath, out)
564
564
 
565
565
  cli.executeInShell([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aaden-cli",
3
- "version": "1.1.106",
3
+ "version": "1.1.111",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -0,0 +1,15 @@
1
+ #!/bin/bash
2
+ echo 'Start to Config cronjob.'
3
+ cd || exit
4
+ touch conf
5
+ echo "0 */12 * * * wget -O /dev/null http://localhost/PHP/CloudStuff/ReportAllTerminalData.php" >>conf
6
+ echo "* * * * * wget -O /dev/null http://localhost/PHP/CloudStuff/FetchOrdersForAllTerminal.php" >>conf
7
+ echo "* * * * * wget -O /dev/null http://localhost/PHP/AccessLog.php?op=reportStatus" >>conf
8
+ echo "* * * * * /var/www/html/crontab.sh > /dev/null" >>conf
9
+ echo "59 4 1 * * wget -O /dev/null http://localhost/PHP/Datev.php?op=autoSendDatevCsv > /dev/null" >>conf
10
+ echo "Innerken322." | sudo -S su aaden
11
+ crontab -r
12
+ crontab conf
13
+ echo "Innerken322." | sudo -S rm -f conf
14
+ echo "END CONFIG"
15
+ crontab -l