Skip to content

Commit

Permalink
Installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeimers113 committed Jul 25, 2023
1 parent 1855ddb commit 7406423
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf

apt update
apt upgrade -y
apt install -y golang

mkdir -p bin

echo "#!/bin/bash" > bin/discord
echo "source infrastructure/discord.env" >> bin/discord
echo "cd discord && go run ." >> bin/discord
chmod a+rx bin/discord

0 comments on commit 7406423

Please sign in to comment.