-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplinstaller2
59 lines (48 loc) · 1.78 KB
/
plinstaller2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#! /bin/bash
#Create necessary directories
mkdir /etc/psiphon/
#Download neccessary scripts and files
echo "Starting downloads"
wget -P /etc/psiphon/ https://raw.githubusercontent.com/Psiphon-Labs/psiphon-tunnel-core-binaries/master/linux/psiphon-tunnel-core-x86_64 --quiet
wget -P /etc/psiphon/ https://raw.githubusercontent.com/SpherionOS/PsiphonLinux/main/psiphon.config --quiet
wget -P /usr/bin/ https://raw.githubusercontent.com/SpherionOS/PsiphonLinux/main/psiphon --quiet
echo "Downloads finished"
echo " "
echo "Installing"
#Give these files the executable permission
chmod +x /etc/psiphon/psiphon-tunnel-core-x86_64
chmod +x /usr/bin/psiphon
echo "Installation finished"
echo " "
echo "Running post install checks"
echo " "
echo "Checking if files exist (Phase 1/2)"
if test -f /etc/psiphon/psiphon-tunnel-core-x86_64; then
echo "Psiphon binary found"
else "ERROR: Psiphon binary not found"
fi
if test -f /etc/psiphon/psiphon.config; then
echo "Psiphon configuration found"
else "ERROR: Psiphon configuration not found"
fi
if test -f /usr/bin/psiphon; then
echo "Psiphon startup script found"
else "ERROR: Psiphon startup script not found"
fi
echo " "
echo "Checking if correct permssions have been applied (Phase 2/2)"
if test -x /etc/psiphon/psiphon-tunnel-core-x86_64;
then
echo "Psiphon binaries have correct permissions"
else
echo "ERROR: Psiphon binaries do not have required permissions"
fi
if test -x /usr/bin/psiphon;
then
echo "Psiphon startup file has correct permissions"
else
echo "ERROR: Psiphon startup file does not have required permission"
fi
echo " "
#Finish installer and give message
echo "Psiphon Linux installation successfully completed. Run sudo psiphon to start the program. Please allow a reasonable amount for Psiphon to connect as it may take a while"