-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL_Kilton
executable file
·22 lines (17 loc) · 1.02 KB
/
INSTALL_Kilton
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# check for root user
if [[ $EUID -ne 0 ]]; then
echo "This installer must be run by user with admin privleges" 1>&2
exit 1
fi
# Install files
install -v -m 0644 -o root -g root etc/gdm3/greeter.dconf-defaults -t /etc/gdm3/
install -v -m 0644 -o root -g root etc/systemd/system/*.service -t /etc/systemd/system/
install -v -m 0644 -o root -g root etc/systemd/system/station-close@.timer.kilton /etc/systemd/system/station-close@.timer
install -v -m 0644 -o root -g root etc/systemd/system/station-notify@.timer.kilton /etc/systemd/system/station-notify@.timer
install -v -m 0644 -o root -g root etc/systemd/system/station-open@.timer.kilton /etc/systemd/system/station-open@.timer
install -v -m 0644 -o root -g root etc/systemd/user/station-notify-user.service /etc/systemd/user/station-notify-user.service
install -v -m 0755 -o root -g root usr/local/bin/station-notify.py /usr/local/bin/
install -v -m 0700 -o root -g root usr/local/sbin/station /usr/local/sbin/
# Reload systemd daemon
systemctl daemon-reload