More updates

This commit is contained in:
Raven Scott
2022-07-06 12:06:45 -05:00
parent 23e4721c1d
commit e5b935aede
12 changed files with 112 additions and 49 deletions

View File

@ -7,7 +7,7 @@ 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 HasteBin Automated installer for Discord-Linux, We are preparing your installation..."
@ -24,13 +24,8 @@ npm install
npm update
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/7777/${port}/g" config.js
sed -i "s/7777/10002/g" config.js
notif "Configuring HasteBin and starting it's server"
@ -38,18 +33,11 @@ wget -O hasteBinStart.json https://ssh.surf/install/hastebin
cd /home/haste-server && pm2 start hasteBinStart.json
sed -i "s/#hastebin/cd \/home\/haste-server \&\& pm2 start hasteBinStart.json/g" /start.sh
sed -i "s/#hastebin/cd \/home\/haste-server \&\& pm2 start hasteBinStart.json \&\& relayPort 10002/g" /start.sh
relayPort 10002
sleep 2
echo "Your installation has completed, you may access your installation at: http://ssh.surf:$port"
echo ""
echo ""
echo "You may also create a subdomain for your installation by usoing the following commands in discord"
echo "+dns register yoursubdomainhere"
echo "+dns vhost $port"
echo "The installation will then be avalible over encrypted SSL at https://yoursubdomainhere.ssh.surf"
echo "Sending discord notification to your account:"
notif "Your hastebin installation has completed, you may access your installation at: http://ssh.surf:$port"
url=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-10002-out.log | head -n 1 | sed 's/$/.virt.fun/')
notif "Your HasteBin is now running at https://$url"