-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
21 lines (17 loc) · 833 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
sudo systemctl stop aniol_gitpull
sudo systemctl disable aniol_gitpull
sudo rm /etc/systemd/system/aniol_gitpull*
sudo rm /var/www/html/info.php
cd /var/www/html/
sudo wget https://raw.githubusercontent.com/aniollidon/gitpull-service/main/info.php --no-cache
cd /etc/systemd/system/
sudo wget https://raw.githubusercontent.com/aniollidon/gitpull-service/main/aniol_gitpull.service --no-cache
sudo wget https://raw.githubusercontent.com/aniollidon/gitpull-service/main/aniol_gitpull.sh --no-cache
sudo wget https://raw.githubusercontent.com/aniollidon/gitpull-service/main/aniol_gitpull.timer --no-cache
sudo chmod +x aniol_gitpull.sh
sudo systemctl daemon-reload
sudo systemctl enable aniol_gitpull.timer
sudo systemctl enable aniol_gitpull
sudo systemctl start aniol_gitpull
sudo systemctl start aniol_gitpull.timer