-
Notifications
You must be signed in to change notification settings - Fork 7
/
server_configuration.txt
56 lines (32 loc) · 1.09 KB
/
server_configuration.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
su -c 'yum update'
timedatectl set-timezone Europe/Berlin
cd ~
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm"
yum localinstall jdk-8u60-linux-x64.rpm
rm ~/jdk-8u60-linux-x64.rpm
sh -c "echo export JAVA_HOME=/usr/java/jdk1.8.0_60/ >> /etc/environment"
yum install git nano
adduser username
passwd username
nano /etc/ssh/sshd_config
PermitRootLogin no
git clone https://github.com/fewi/vagfr-rest-wrapper.git
cd vagfr-rest-wrapper
git submodule init
git submodule update
chmod +x gradlew
./gradlew bootRepackage
nano /etc/systemd/system/vagfr.service
[Unit]
Description=Vagfr Spring Boot
After=syslog.target
[Service]
User=username
ExecStart=/home/username/vagfr-rest-wrapper/build/libs/vagfr-rest-wrapper-0.0.1-SNAPSHOT.jar
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
chmod 664 /etc/systemd/system/vagfr.service
systemctl enable vagfr.service
//Update sublibs
git submodule foreach git pull origin master