This commit is contained in:
Maciej Sobkowiak 2022-01-05 00:20:13 +01:00
parent 348852a076
commit fdd68299db
2 changed files with 12 additions and 3 deletions

View File

@ -2,6 +2,6 @@
runcmd:
- cd /home
- git clone https://git.wmi.amu.edu.pl/s434784/04_Public_cloud
- cd /home/04_Public_cloud/
- chmod -x webservice
- bash /home/04_Public_cloud/webservice
- chmod +x /home/04_Public_cloud/webservice
- cp /home/04_Public_cloud/webservice.service /etc/systemd/system/webservice.service
- systemctl start webservice

9
aws.yml Normal file
View File

@ -0,0 +1,9 @@
#cloud-config
packages:
- git
runcmd:
- cd /home
- git clone https://git.wmi.amu.edu.pl/s434784/04_Public_cloud
- chmod +x /home/04_Public_cloud/webservice
- cp /home/04_Public_cloud/webservice.service /etc/systemd/system/webservice.service
- systemctl start webservice