You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/setup.sh
+63-30Lines changed: 63 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,10 @@ then
18
18
echo"Docker compose command set to new style $DOCKER_COMPOSE"
19
19
fi
20
20
21
-
printf$success"\nTAK server setup script"
21
+
22
+
printf$success"\nTAK server setup script sponsored by CloudRF.com - \"The API for RF\"\n"
22
23
printf$info"\nStep 1. Download the official docker image as a zip file from https://tak.gov/products/tak-server \nStep 2. Place the zip file in this tak-server folder.\n"
23
-
printf$warning"\nElevated privileges are required to enumerate process names which may be holding open TCP ports.\nPlease enter your password when prompted.\n"
24
+
printf$warning"\nYou should install this as a user. Elevated privileges (sudo) are only required to clean up a previous install eg. sudo ./scripts/cleanup.sh\n"
printf$info"\nThis process $proc is using port $i which is required for TAK server to operate. Do you want me to kill the process (y/n): "
49
-
read choice
50
-
if [ $choice=="y" ];
51
-
then
52
-
sudo kill -15 $prockill
53
-
54
-
elif [ $choice=="yes" ];
55
-
then
56
-
sudo kill -15 $prockill
57
-
else
58
-
printf$danger"Please repeat the process once the port $i is not in use. Exiting now..\n"
59
-
sleep 1
60
-
exit 0
61
-
fi
47
+
printf$warning"\nAnother process is still using port $i. Either wait or use 'sudo netstat -plant' to find it, then 'ps aux' to get the PID and 'kill PID' to stop it and try again\n"
48
+
exit 0
62
49
else
63
50
printf$success"\nPort $i is available.."
64
51
fi
@@ -149,7 +136,7 @@ netstat_check
149
136
tak_folder
150
137
if [ -d"tak" ]
151
138
then
152
-
printf$danger"Failed to remove the tak folder. You will need to do this as sudo: sudo rm -rf tak\n"
139
+
printf$danger"Failed to remove the tak folder. You will need to do this as sudo: sudo ./scripts/cleanup.sh\n"
0 commit comments