aaden-cli 1.1.121 → 1.1.125
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
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.124"};
|
|
57466
57466
|
|
|
57467
57467
|
/***/ }),
|
|
57468
57468
|
|
|
@@ -57719,11 +57719,11 @@ program.command('load-new-version').action(loadNewVersion) // auto execute.
|
|
|
57719
57719
|
program.command('local-version').action(() => {
|
|
57720
57720
|
console.log('storage:' + getStorageBackendFileVersion())
|
|
57721
57721
|
})
|
|
57722
|
-
program.command('backup [
|
|
57722
|
+
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'
|
|
@@ -57949,7 +57954,7 @@ async function startNgrokService () {
|
|
|
57949
57954
|
cli.executeInShell(command, program.debug)
|
|
57950
57955
|
}
|
|
57951
57956
|
|
|
57952
|
-
async function backup (
|
|
57957
|
+
async function backup (noUpload = false) {
|
|
57953
57958
|
const timeStamp = dayjs().format(InnerKenTimeStampFormat)
|
|
57954
57959
|
const backupHome = 'appendBackup'
|
|
57955
57960
|
const command = [
|
|
@@ -57968,7 +57973,7 @@ async function backup (upload = false) {
|
|
|
57968
57973
|
]
|
|
57969
57974
|
|
|
57970
57975
|
cli.executeInShell(command, program.debug)
|
|
57971
|
-
if(
|
|
57976
|
+
if(!noUpload){
|
|
57972
57977
|
setTimeout(() => {
|
|
57973
57978
|
const homedir = __nccwpck_require__(12087).homedir()
|
|
57974
57979
|
const fileName = [homedir, 'backups', timeStamp, `${timeStamp}@cli.sql`].join('/')
|
|
@@ -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
|
@@ -37,11 +37,11 @@ program.command('load-new-version').action(loadNewVersion) // auto execute.
|
|
|
37
37
|
program.command('local-version').action(() => {
|
|
38
38
|
console.log('storage:' + getStorageBackendFileVersion())
|
|
39
39
|
})
|
|
40
|
-
program.command('backup [
|
|
40
|
+
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'
|
|
@@ -267,7 +272,7 @@ async function startNgrokService () {
|
|
|
267
272
|
cli.executeInShell(command, program.debug)
|
|
268
273
|
}
|
|
269
274
|
|
|
270
|
-
async function backup (
|
|
275
|
+
async function backup (noUpload = false) {
|
|
271
276
|
const timeStamp = dayjs().format(InnerKenTimeStampFormat)
|
|
272
277
|
const backupHome = 'appendBackup'
|
|
273
278
|
const command = [
|
|
@@ -286,7 +291,7 @@ async function backup (upload = false) {
|
|
|
286
291
|
]
|
|
287
292
|
|
|
288
293
|
cli.executeInShell(command, program.debug)
|
|
289
|
-
if(
|
|
294
|
+
if(!noUpload){
|
|
290
295
|
setTimeout(() => {
|
|
291
296
|
const homedir = require('os').homedir()
|
|
292
297
|
const fileName = [homedir, 'backups', timeStamp, `${timeStamp}@cli.sql`].join('/')
|
package/package.json
CHANGED
|
@@ -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
|