aaden-cli 1.1.122 → 1.1.126
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/AadenDeploy/update.sh +1 -1
- package/dist/index.js +9 -4
- package/dist/patch/202107211050resetCronjob6.sh +2 -2
- package/{patch/202107211050resetCronjob6.sh → dist/patch/202107211050resetCronjob7.sh} +2 -2
- package/index.js +8 -3
- package/package.json +1 -1
- package/patch/202107211050resetCronjob7.sh +15 -0
package/AadenDeploy/update.sh
CHANGED
|
@@ -14,7 +14,7 @@ echo "Innerken322." | sudo -S chmod +x /var/www/html/crontab.sh
|
|
|
14
14
|
echo "Innerken322." | sudo -S chmod +x /var/www/html/PHP/vendor/bin/phinx
|
|
15
15
|
echo "Innerken322." | sudo -S chmod +x /var/www/html/PHP/vendor/robmorgan/phinx/bin/phinx
|
|
16
16
|
|
|
17
|
-
echo "Innerken322." | sudo -S snap refresh aaden-vue-app
|
|
17
|
+
echo "Innerken322." | sudo -S snap refresh aaden-vue-app
|
|
18
18
|
|
|
19
19
|
# run migrations
|
|
20
20
|
cd /var/www/html/PHP || exit
|
package/dist/index.js
CHANGED
|
@@ -57462,7 +57462,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
|
|
|
57462
57462
|
/***/ ((module) => {
|
|
57463
57463
|
|
|
57464
57464
|
"use strict";
|
|
57465
|
-
module.exports = {"i8":"1.1.
|
|
57465
|
+
module.exports = {"i8":"1.1.125"};
|
|
57466
57466
|
|
|
57467
57467
|
/***/ }),
|
|
57468
57468
|
|
|
@@ -57723,7 +57723,7 @@ program.command('backup [noUpload]').action(backup)
|
|
|
57723
57723
|
program.command('ngrok').action(startNgrokService)
|
|
57724
57724
|
program.command('update-ngrok-config <deviceId>').action(updateNgrokConfig)
|
|
57725
57725
|
program.command('get-database').action(getDatabase)
|
|
57726
|
-
program.command('get-newdatabase').action(
|
|
57726
|
+
program.command('get-newdatabase').action(getNewDatabase)
|
|
57727
57727
|
program.command('run <filePath>').action(run)
|
|
57728
57728
|
program.command('patch').action(patch)
|
|
57729
57729
|
program.command('check-tse').action(checkTse)
|
|
@@ -57734,6 +57734,7 @@ program.command('full-update').action(fullUpdate)
|
|
|
57734
57734
|
program.command('return-terminal').action(returnTerminal)
|
|
57735
57735
|
program.command('db').action(enterDatabase)
|
|
57736
57736
|
program.command('printer-test').action(testPrinter)
|
|
57737
|
+
program.command('log').action(log)
|
|
57737
57738
|
program.command('enable-mile-pay').action(enableMilePay)
|
|
57738
57739
|
program.command('start-mile-pay').action(startService)
|
|
57739
57740
|
program.command('mile-pay-option')
|
|
@@ -57801,9 +57802,13 @@ async function selectOption () {
|
|
|
57801
57802
|
}
|
|
57802
57803
|
}
|
|
57803
57804
|
|
|
57805
|
+
function log(){
|
|
57806
|
+
cli.executeInShell(['tail -f /var/www/html/Resource/failLog.log'])
|
|
57807
|
+
}
|
|
57808
|
+
|
|
57804
57809
|
function enterDatabase () {
|
|
57805
57810
|
const command = [
|
|
57806
|
-
`mysql -uaaden -
|
|
57811
|
+
`mysql -uaaden -pInnerken322. -Daaden`
|
|
57807
57812
|
]
|
|
57808
57813
|
cli.executeInShell(command, program.debug)
|
|
57809
57814
|
}
|
|
@@ -57823,7 +57828,7 @@ function getDatabase () {
|
|
|
57823
57828
|
cli.executeInShell(command, program.debug)
|
|
57824
57829
|
}
|
|
57825
57830
|
|
|
57826
|
-
function
|
|
57831
|
+
function getNewDatabase () {
|
|
57827
57832
|
const command = [
|
|
57828
57833
|
`mysqldump -uaaden -pInnerken322. --databases aaden --tables Attribute AttributeGroup BonTemplate Category_AttributeGroup DishWithName Dish_AttributeGroup Dishes DishesString DishesCategory DishesCategoryString DishesCategoryType DishesCategoryTypeString ConsumeType_Dishes_Free ConsumeType_Dishes_Show> transfer.sql`,
|
|
57829
57834
|
'sudo cp transfer.sql /var/www/html'
|
|
@@ -8,8 +8,8 @@ echo "* * * * * wget -O /dev/null http://localhost/PHP/AccessLog.php?op=reportS
|
|
|
8
8
|
echo "* * * * * /var/www/html/crontab.sh > /dev/null" >>conf
|
|
9
9
|
echo "59 4 1 * * wget -O /dev/null http://localhost/PHP/Datev.php?op=autoSendDatevCsv > /dev/null" >>conf
|
|
10
10
|
echo "Innerken322." | sudo -S su aaden
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
crontab -r
|
|
12
|
+
crontab conf
|
|
13
13
|
echo "Innerken322." | sudo -S rm -f conf
|
|
14
14
|
echo "END CONFIG"
|
|
15
15
|
crontab -l
|
|
@@ -8,8 +8,8 @@ echo "* * * * * wget -O /dev/null http://localhost/PHP/AccessLog.php?op=reportS
|
|
|
8
8
|
echo "* * * * * /var/www/html/crontab.sh > /dev/null" >>conf
|
|
9
9
|
echo "59 4 1 * * wget -O /dev/null http://localhost/PHP/Datev.php?op=autoSendDatevCsv > /dev/null" >>conf
|
|
10
10
|
echo "Innerken322." | sudo -S su aaden
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
crontab -r
|
|
12
|
+
crontab conf
|
|
13
13
|
echo "Innerken322." | sudo -S rm -f conf
|
|
14
14
|
echo "END CONFIG"
|
|
15
15
|
crontab -l
|
package/index.js
CHANGED
|
@@ -41,7 +41,7 @@ program.command('backup [noUpload]').action(backup)
|
|
|
41
41
|
program.command('ngrok').action(startNgrokService)
|
|
42
42
|
program.command('update-ngrok-config <deviceId>').action(updateNgrokConfig)
|
|
43
43
|
program.command('get-database').action(getDatabase)
|
|
44
|
-
program.command('get-newdatabase').action(
|
|
44
|
+
program.command('get-newdatabase').action(getNewDatabase)
|
|
45
45
|
program.command('run <filePath>').action(run)
|
|
46
46
|
program.command('patch').action(patch)
|
|
47
47
|
program.command('check-tse').action(checkTse)
|
|
@@ -52,6 +52,7 @@ program.command('full-update').action(fullUpdate)
|
|
|
52
52
|
program.command('return-terminal').action(returnTerminal)
|
|
53
53
|
program.command('db').action(enterDatabase)
|
|
54
54
|
program.command('printer-test').action(testPrinter)
|
|
55
|
+
program.command('log').action(log)
|
|
55
56
|
program.command('enable-mile-pay').action(enableMilePay)
|
|
56
57
|
program.command('start-mile-pay').action(startService)
|
|
57
58
|
program.command('mile-pay-option')
|
|
@@ -119,9 +120,13 @@ async function selectOption () {
|
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
|
|
123
|
+
function log(){
|
|
124
|
+
cli.executeInShell(['tail -f /var/www/html/Resource/failLog.log'])
|
|
125
|
+
}
|
|
126
|
+
|
|
122
127
|
function enterDatabase () {
|
|
123
128
|
const command = [
|
|
124
|
-
`mysql -uaaden -
|
|
129
|
+
`mysql -uaaden -pInnerken322. -Daaden`
|
|
125
130
|
]
|
|
126
131
|
cli.executeInShell(command, program.debug)
|
|
127
132
|
}
|
|
@@ -141,7 +146,7 @@ function getDatabase () {
|
|
|
141
146
|
cli.executeInShell(command, program.debug)
|
|
142
147
|
}
|
|
143
148
|
|
|
144
|
-
function
|
|
149
|
+
function getNewDatabase () {
|
|
145
150
|
const command = [
|
|
146
151
|
`mysqldump -uaaden -pInnerken322. --databases aaden --tables Attribute AttributeGroup BonTemplate Category_AttributeGroup DishWithName Dish_AttributeGroup Dishes DishesString DishesCategory DishesCategoryString DishesCategoryType DishesCategoryTypeString ConsumeType_Dishes_Free ConsumeType_Dishes_Show> transfer.sql`,
|
|
147
152
|
'sudo cp transfer.sql /var/www/html'
|
package/package.json
CHANGED
|
@@ -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
|