aaden-cli 1.2.18 → 1.2.20
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/files/getFile.sh +0 -0
- package/AadenDeploy/ngrok/ngrok +0 -0
- package/AadenDeploy/update.sh +0 -0
- package/AadenDeploy/upgrade.sh +3 -0
- package/dist/index.js +192 -654
- package/dist/patch/202010030826fixAuthority.sh +3 -5
- package/index.js +1 -1
- package/package.json +1 -1
- package/patch/202010030826fixAuthority.sh +3 -5
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
DeviceId=$(cat /var/www/html/Resource/config/config.ini | grep -e DeviceId | cut -d = -f 2 | grep '[1-9]*' | sed 's/"//g')
|
|
5
4
|
aaden-cli update-ngrok-config $DeviceId
|
|
6
|
-
|
|
5
|
+
ln -s /usr/bin/aaden-cli /usr/local/bin/aaden-cli
|
|
7
6
|
|
|
8
7
|
ServiceFileName=/etc/systemd/system/aaden-ngrok.service
|
|
9
8
|
|
|
10
|
-
sudo touch $ServiceFileName
|
|
9
|
+
sudo touch $ServiceFileName
|
|
11
10
|
sudo chmod 777 $ServiceFileName
|
|
12
11
|
echo -e "
|
|
13
12
|
[Unit]
|
|
@@ -22,9 +21,8 @@ ExecStart=/usr/local/bin/aaden-cli ngrok
|
|
|
22
21
|
|
|
23
22
|
[Install]
|
|
24
23
|
WantedBy=multi-user.target
|
|
25
|
-
"
|
|
24
|
+
" >$ServiceFileName
|
|
26
25
|
|
|
27
26
|
sudo systemctl start aaden-ngrok.service
|
|
28
27
|
sudo systemctl enable aaden-ngrok.service
|
|
29
28
|
sudo systemctl daemon-reload
|
|
30
|
-
|
package/index.js
CHANGED
|
@@ -67,7 +67,7 @@ program.command('mile-pay-option')
|
|
|
67
67
|
.action(milePayOption)
|
|
68
68
|
program.command('enable-resource-track').action(enableResourceTrack)
|
|
69
69
|
program.command('start-resource-track').action(startResourceTrack)
|
|
70
|
-
program.command('
|
|
70
|
+
program.command('auto-send-mail').action(editIni)
|
|
71
71
|
|
|
72
72
|
if (program.debug) {
|
|
73
73
|
debugInfo()
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
DeviceId=$(cat /var/www/html/Resource/config/config.ini | grep -e DeviceId | cut -d = -f 2 | grep '[1-9]*' | sed 's/"//g')
|
|
5
4
|
aaden-cli update-ngrok-config $DeviceId
|
|
6
|
-
|
|
5
|
+
ln -s /usr/bin/aaden-cli /usr/local/bin/aaden-cli
|
|
7
6
|
|
|
8
7
|
ServiceFileName=/etc/systemd/system/aaden-ngrok.service
|
|
9
8
|
|
|
10
|
-
sudo touch $ServiceFileName
|
|
9
|
+
sudo touch $ServiceFileName
|
|
11
10
|
sudo chmod 777 $ServiceFileName
|
|
12
11
|
echo -e "
|
|
13
12
|
[Unit]
|
|
@@ -22,9 +21,8 @@ ExecStart=/usr/local/bin/aaden-cli ngrok
|
|
|
22
21
|
|
|
23
22
|
[Install]
|
|
24
23
|
WantedBy=multi-user.target
|
|
25
|
-
"
|
|
24
|
+
" >$ServiceFileName
|
|
26
25
|
|
|
27
26
|
sudo systemctl start aaden-ngrok.service
|
|
28
27
|
sudo systemctl enable aaden-ngrok.service
|
|
29
28
|
sudo systemctl daemon-reload
|
|
30
|
-
|