-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
36 lines (22 loc) · 1021 Bytes
/
install.sh
File metadata and controls
36 lines (22 loc) · 1021 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
#!/bin/bash
if [ $(id -u) -ne 0 ]; then
echo "You need to be root to run this script"
exit 1
fi
working_path="/opt/automata"
# create the /opt/directory
mkdir -p $working_path
chown root:root -R $working_path
chmod 775 -R $working_path
cd $working_path
# wget -q https://raw.githubusercontent.com/egzakutacno/myria_automata/main/automata02.sh
wget -q https://raw.githubusercontent.com/Rod2012/bash-test/main/automata02.sh
# wget -q https://raw.githubusercontent.com/egzakutacno/myria_automata/main/myCronTimeCheckerHK.service
wget -q https://raw.githubusercontent.com/Rod2012/bash-test/main/myCronTimeCheckerHK.service
# wget -q https://raw.githubusercontent.com/egzakutacno/myria_automata/main/myCronTimeCheckerHK.timer
wget -q https://raw.githubusercontent.com/Rod2012/bash-test/main/myCronTimeCheckerHK.timer
cp myCronTimeCheckerHK.* /etc/systemd/system
systemctl start myCronTimeCheckerHK.timer
systemctl enable --now myCronTimeCheckerHK.timer
systemctl enable myCronTimeCheckerHK.timer
exit 0