-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added first version of install script
- Loading branch information
1 parent
17d5acc
commit 7ef55ef
Showing
1 changed file
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
#! /bin/bash | ||
printf "\033[1;31mInstalling Golang\033[0m\n" | ||
apt install golang -y | ||
##TOD Add warning of destruction | ||
|
||
printf "\033[1;31mGrabbing latest binary\033[0m\n" | ||
#TODO make OS dependent | ||
wget https://github.com/Porco-Rosso/Lipstick-on-a-Pig/releases/latest/download/lipgloss-on-a-pig_darwin_amd64 | ||
mkdir /usr/local/bin/ | ||
mv lipgloss-on-a-pig_darwin_amd64 /usr/local/bin/lipgloss-on-a-pig | ||
|
||
printf "\033[1;31mMaking executable\033[0m\n" | ||
chmod +x /usr/local/bin/lipgloss-on-a-pig | ||
|
||
printf "\033[1;31mRemoving old MOTD\033[0m\n" | ||
echo -n >/etc/update-motd.d/10-uname | ||
echo -n > /etc/motd | ||
|
||
printf "\033[1;31mAdding lipstick-on-a-pig to MOTD\033[0m\n" | ||
LINE='/usr/local/bin/lipgloss-on-a-pig"' | ||
FILE='~/.bashrc' | ||
grep -qF -- "$LINE" "$FILE" || echo "$LINE" >> "$FILE" | ||
|
||
printf "\033[1;31mInstalled!\033[0m\n" | ||
/usr/local/bin/lipgloss-on-a-pig |