We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a020aa6 commit ebad72fCopy full SHA for ebad72f
bin/countly.install.sh
@@ -3,6 +3,16 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3
DATE=$(date +%Y-%m-%d:%H:%M:%S)
4
totalm=$(free -m | awk '/^Mem:/{print $2}')
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."
12
13
+ fi
14
+fi
15
+
16
if [ "$INSIDE_DOCKER" == "1" ]; then
17
if [ -f /etc/lsb-release ]; then
18
apt install sudo -y
0 commit comments