aaden-cli 1.2.25 → 1.2.26

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.
@@ -10,7 +10,7 @@ echo "0 */12 * * * wget -O /dev/null http://localhost/PHP/CloudStuff/ReportAllTe
10
10
  echo "* * * * * wget -O /dev/null http://localhost/PHP/CloudStuff/FetchOrdersForAllTerminal.php" >>conf
11
11
  echo "* * * * * wget -O /dev/null http://localhost/PHP/AccessLog.php?op=reportStatus" >>conf
12
12
  echo "* * * * * /var/www/html/crontab.sh > /dev/null" >>conf
13
- echo "59 4 1 * * wget -O /dev/null http://localhost/PHP/Datev.php?op=autoSendDatevCsv > /dev/null" >>conf
13
+ echo "0 * * * * wget -O /dev/null http://localhost/PHP/Datev.php?op=autoSendDatevCsv > /dev/null" >>conf
14
14
  echo "* * * * * curl --location --request GET 'http://localhost/PHP/BackendData.php?op=autoSend3In1'" >>conf
15
15
  echo "* * * * * curl --location --request GET 'http://localhost/PHP/BackendData.php?op=autoSendMonthSummary'" >>conf
16
16
  sudo crontab -u aaden -r
@@ -0,0 +1,25 @@
1
+ #!/bin/bash
2
+
3
+ ServiceFileName=/etc/systemd/system/aaden-gdpdu.service
4
+
5
+ sudo touch $ServiceFileName
6
+ sudo chmod 777 $ServiceFileName
7
+ echo -e "
8
+ [Unit]
9
+ Description=Gdpdu Service For Aaden
10
+
11
+ [Service]
12
+ Type=simple
13
+ Restart=always
14
+ RestartSec=1
15
+ User=root
16
+ ExecStart=/usr/bin/php /var/www/html/PHP/autoWriteGdpdu.php
17
+
18
+ [Install]
19
+ WantedBy=multi-user.target
20
+ " > $ServiceFileName
21
+
22
+ sudo systemctl start aaden-gdpdu.service
23
+ sudo systemctl enable aaden-gdpdu.service
24
+ echo 'gdpdu auto write start'
25
+ sudo service aaden-gdpdu start
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.2.24"};
58164
+ module.exports = {"i8":"1.2.25"};
58165
58165
 
58166
58166
  /***/ }),
58167
58167
 
@@ -58458,6 +58458,7 @@ program.command('set-auto-send-3in1-today-true').
58458
58458
  action(editConfigIni(setConfig('Email', 'AutoSend3in1Today', true)))
58459
58459
  program.command('set-auto-send-3in1-today-false').
58460
58460
  action(editConfigIni(setConfig('Email', 'AutoSend3in1Today', false)))
58461
+ program.command('auto-write-gdpdu').action(autoWriteGdpdu)
58461
58462
 
58462
58463
  if (program.debug) {
58463
58464
  debugInfo()
@@ -59132,6 +59133,11 @@ function getPrivilegeCMD (path, pri = '+x', relativePath = true) {
59132
59133
  return command
59133
59134
  }
59134
59135
 
59136
+ function autoWriteGdpdu () {
59137
+ const files = ['AadenDeploy/Utils/writeGdpduService.sh']
59138
+ runMultiple(files)
59139
+ }
59140
+
59135
59141
  })();
59136
59142
 
59137
59143
  module.exports = __webpack_exports__;
package/index.js CHANGED
@@ -77,6 +77,7 @@ program.command('set-auto-send-3in1-today-true').
77
77
  action(editConfigIni(setConfig('Email', 'AutoSend3in1Today', true)))
78
78
  program.command('set-auto-send-3in1-today-false').
79
79
  action(editConfigIni(setConfig('Email', 'AutoSend3in1Today', false)))
80
+ program.command('auto-write-gdpdu').action(autoWriteGdpdu)
80
81
 
81
82
  if (program.debug) {
82
83
  debugInfo()
@@ -750,3 +751,8 @@ function getPrivilegeCMD (path, pri = '+x', relativePath = true) {
750
751
  command.push(`echo "Innerken322." | sudo -S chmod ${pri} ${path}`)
751
752
  return command
752
753
  }
754
+
755
+ function autoWriteGdpdu () {
756
+ const files = ['AadenDeploy/Utils/writeGdpduService.sh']
757
+ runMultiple(files)
758
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aaden-cli",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {