-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetCore_Install
More file actions
executable file
·43 lines (33 loc) · 974 Bytes
/
NetCore_Install
File metadata and controls
executable file
·43 lines (33 loc) · 974 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
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
clear
AppDirectory="/var/www/"
AppName="TimeClock"
Normal=$(tput sgr0)
Yellow=$(tput setaf 190)
Bold=$(tput bold)
Underline=$(tput smul)
function registerMicrosoftKeyAndFeed(){
printf "${Yellow} ${Bold}\nRegistering Microsoft Key and Feed...${Normal}\n"
wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
}
function installNetSDK(){
printf "${Yellow}${Bold}\nInstalling .NET Core SDK${Normal}\n"
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-hosting-2.0.7
}
function installNginx(){
printf "${Yellow}${Bold}\nInstalling Nginx${Normal}\n"
#Ensure all packages are up to date
#and install Nginx
sudo apt-get update
sudo apt-get install Nginx
#Start Nginx
sudo /etc/init.d/nginx start
}
sudo apt-get update
registerMicrosoftKeyAndFeed
installNetSDK
installNginx
printf "${Yellow}${Bold}\nFinished Updating${Normal}\n"