Commit 24f9c5a 1 parent c2c5115 commit 24f9c5a Copy full SHA for 24f9c5a
File tree 2 files changed +19
-17
lines changed
2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -22,36 +22,36 @@ jobs:
22
22
steps :
23
23
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24
24
- uses : actions/checkout@v2
25
-
25
+
26
26
- name : Github Actions Azure connection fix
27
27
run : |
28
28
# Workaround for https://github.com/actions/runner-images/issues/675#issuecomment-1381389712
29
29
sudo sed -i 's/azure/us/g' /etc/apt/sources.list
30
30
31
31
- name : Installing Countly
32
32
shell : bash
33
- run : sudo bash ./bin/countly.install.sh
34
-
33
+ run : sudo bash ./bin/countly.install.sh gh
34
+
35
35
- name : NodeJS version
36
36
shell : bash
37
37
run : node --version
38
-
38
+
39
39
- name : NPM version
40
40
shell : bash
41
41
run : npm --version
42
-
42
+
43
43
- name : Mongo version
44
44
shell : bash
45
45
run : mongo --version
46
-
46
+
47
47
- name : ShellCheck
48
48
shell : bash
49
49
run : countly shellcheck
50
-
50
+
51
51
- name : ESLint
52
52
shell : bash
53
53
run : npx eslint .
54
-
54
+
55
55
- name : DistFiles
56
56
shell : bash
57
57
run : sudo countly task dist-all
@@ -63,19 +63,19 @@ jobs:
63
63
- name : Output API Logs
64
64
if : ${{ always() }}
65
65
run : cat log/countly-api.log
66
-
66
+
67
67
- name : Output Dashboard Logs
68
68
if : ${{ always() }}
69
69
run : cat log/countly-dashboard.log
70
-
70
+
71
71
- name : Output MongoDB Logs
72
72
if : ${{ always() }}
73
73
run : sudo cat /var/log/mongodb/mongod.log
74
74
75
75
- name : Output Nginx Logs
76
76
if : ${{ always() }}
77
77
run : sudo cat /var/log/nginx/error.log
78
-
78
+
79
79
- name : Send slack notification
80
80
id : slack
81
81
if : always()
Original file line number Diff line number Diff line change @@ -3,13 +3,15 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3
3
DATE=$( date +%Y-%m-%d:%H:%M:%S)
4
4
totalm=$( free -m | awk ' /^Mem:/{print $2}' )
5
5
6
- if [[ " $DIR " = ' /root' * ]]; then
7
- echo " You cannot install Countly under /root. Suggested paths: /opt or /usr."
8
- exit 1
9
- elif [[ " $DIR " = ' /home' * ]]; then
10
- if ! [[ " $DIR " = ' /home/countly' * ]]; then
11
- echo " You cannot install Countly under home directory of any other user. Suggested paths: /opt or /usr."
6
+ if ! [[ " $1 " = ' gh' ]]; then
7
+ if [[ " $DIR " = ' /root' * ]]; then
8
+ echo " You cannot install Countly under /root. Suggested paths: /opt or /usr."
12
9
exit 1
10
+ elif [[ " $DIR " = ' /home' * ]]; then
11
+ if ! [[ " $DIR " = ' /home/countly' * ]]; then
12
+ echo " You cannot install Countly under home directory of any other user. Suggested paths: /opt or /usr."
13
+ exit 1
14
+ fi
13
15
fi
14
16
fi
15
17
You can’t perform that action at this time.
0 commit comments