-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpost-install.sh
More file actions
executable file
·39 lines (31 loc) · 1.02 KB
/
Copy pathpost-install.sh
File metadata and controls
executable file
·39 lines (31 loc) · 1.02 KB
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
#!/bin/bash
# Post-Installation Configuration for VIP-Autoscript
echo "Running post-installation configuration..."
echo ""
# Enable SSH UDP support
if ! grep -q "PermitTunnel yes" /etc/ssh/sshd_config; then
echo "PermitTunnel yes" >> /etc/ssh/sshd_config
systemctl restart ssh
echo "✓ SSH UDP support enabled"
fi
# Install neofetch if not installed
if ! command -v neofetch &> /dev/null; then
apt install -y neofetch > /dev/null 2>&1
echo "✓ neofetch installed"
fi
# Create Xray config directory
mkdir -p /etc/xray
# Create domain files if not exist
touch /etc/xray/domain 2>/dev/null || true
touch /etc/xray/flare-domain 2>/dev/null || true
# Create config directories
mkdir -p /var/lib/scrz-prem 2>/dev/null || true
mkdir -p /etc/mastermind/telegram 2>/dev/null || true
# Set default IP
if [ ! -f /var/lib/scrz-prem/ipvps.conf ]; then
echo "IP=localhost" > /var/lib/scrz-prem/ipvps.conf
fi
echo ""
echo "✓ Post-installation configuration complete!"
echo ""
echo "Type 'menu' to access the control panel"