forked from freegeekchicago/fgc-installscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.txt
32 lines (25 loc) · 876 Bytes
/
install.txt
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
#!/bin/bash
### Short script for pulling the install.sh file from
### FreeGeek Chicago's github account and running it.
### Orginally written by James Slater
# Check for root/sudo privileges
if [ "$(id -u)" != "0" ]; then
echo "Sorry, you are not root."
exit 1
fi
echo "############################"
echo "## Downloading Install.sh ##"
echo "############################"
# Remove current install.sh
if [ -f /usr/local/bin/install.sh ]; then
echo "## Removing old install.sh, OK."
rm /usr/local/bin/install.sh
fi
# Pull fresh install.sh from github, store in /usr/local/bin
echo "## Pulling fresh install.sh, OK."
wget -qO /usr/local/bin/install.sh https://raw.github.com/freegeekchicago/fgc-installscript/master/install.sh
## shorten address is http://git.io/Ool_Aw
# Run install.sh for updates
echo "## Running install.sh, BYE!"
sh /usr/local/bin/install.sh
#EOF