-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·33 lines (29 loc) · 993 Bytes
/
install.sh
File metadata and controls
executable file
·33 lines (29 loc) · 993 Bytes
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
33
#!/bin/bash
#
# Script: Install.sh
# Description: conServer Installer
SO=$(uname -v | awk '{print $1}')
if [ ${SO} == "Darwin" ];
then
echo "Helo, your Operation System is Mac, now we are installing Zenity from brew"
brew install zenity
else
echo "Helo, your Operation System is Linux, now we are installing requirements from apt-get"
sudo apt-get -y install libgmp-dev
sudo apt-get -y ruby ruby-dev
sudo apt-get -y zenity
sudo apt-get -y zlib1g-dev
sudo apt-get -y bundler
fi
echo "Initiating bundle install"
bundle install
echo "Copy files and set permissions"
sudo cp $PWD/conservers.sh /usr/local/bin/
sudo chmod +rx /usr/local/bin/conservers.sh
sudo cp $PWD/conservers.config /etc/
sudo chmod +r /etc/conservers.config
sudo cp $PWD/getServers.rb /usr/local/bin/
sudo chmod +rx /usr/local/bin/getServers.rb
echo "Congrats, sucessfull installation!"
echo "1. Configure your URL in /etc/conservers.config"
echo "2. Enjoy. use: \$ conserver.sh"