forked from snxraven/autoinstallers
More updates
This commit is contained in:
@ -7,16 +7,16 @@ echo ""
|
||||
|
||||
|
||||
echo "downloading the Notification Bot"
|
||||
wget -q -O /usr/bin/notif https://ssh.surf/debian/notif && chmod +x /usr/bin/notif
|
||||
wget -q -O /usr/bin/notif https://ssh.surf/alma-x64/notif && chmod +x /usr/bin/notif
|
||||
echo "Done"
|
||||
|
||||
notif "Welcome to the Code-Server Automated installer for Discord-Linux ARM, We are preparing your installation..."
|
||||
|
||||
notif "Installing Code-Server 4.5.0 using RPM"
|
||||
|
||||
wget https://github.com/coder/code-server/releases/download/v4.5.0/code-server-4.5.0-arm64.rpm
|
||||
rpm -U code-server-4.5.0-arm64.rpm
|
||||
rm -f code-server-4.5.0-arm64.rpm
|
||||
wget https://github.com/coder/code-server/releases/download/v4.5.0/code-server-4.5.0-amd64.rpm
|
||||
rpm -U code-server-4.5.0-amd64.rpm
|
||||
rm -f code-server-4.5.0-amd64.rpm
|
||||
|
||||
notif "Downloading our configurations"
|
||||
|
||||
@ -37,17 +37,19 @@ sed -i "s/replaceme/${PASS}/g" ~/.config/code-server/config.yaml
|
||||
|
||||
sed -i "s/#code-server/cd \/var\/tools \&\& pm2 start startCodeServer.json \&\& relayPort 8080/g" /start.sh
|
||||
|
||||
|
||||
|
||||
notif "Requesting port from API Server"
|
||||
hostname=$(hostname)
|
||||
|
||||
echo "Grabbing a port from your container from our API"
|
||||
port=$(curl -s https://findport.ssh.surf/?id=$hostname)
|
||||
|
||||
sed -i "s/127.0.0.1:8080/0.0.0.0:${port}/g" /root/.config/code-server/config.yaml
|
||||
sed -i "s/127.0.0.1:8080/0.0.0.0:8080/g" /root/.config/code-server/config.yaml
|
||||
|
||||
pm2 start /var/tools/startCodeServer.json
|
||||
|
||||
|
||||
notif "The installation has completed. You may access your install at: http://ssh.surf:$port with the password $PASS"
|
||||
sleep 5
|
||||
notif "Sleeping for 5 seconds to allow for code-server to start...."
|
||||
|
||||
relayPort 8080
|
||||
|
||||
sleep 5
|
||||
notif "Sleeping to allow the relay to start..."
|
||||
|
||||
url=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-8080-out.log | head -n 1 | sed 's/$/.virt.fun/')
|
||||
|
||||
notif "The installation has completed. You may access your install at: https://$url with the password $PASS"
|
Reference in New Issue
Block a user