-
Notifications
You must be signed in to change notification settings - Fork 0
/
host-update.sh
executable file
·62 lines (46 loc) · 1.11 KB
/
host-update.sh
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
57
58
59
60
61
62
#! /bin/bash
echo
echo ================================================================================
echo Renstar Global LLC - Generic Host Update Utility *nix Systems v1
echo ================================================================================
echo
if [ -f "/opt/Plex-Updater/update-plex.sh" ]
then
echo PLEX Detected
echo Updating PLEX...
echo
/usr/bin/sudo /opt/Plex-Updater/update-plex.sh
echo
echo PLEX Update Complete.
echo
fi
echo Updating APT Packages... Please Wait.
echo
/usr/bin/sudo /usr/bin/nala update && /usr/bin/sudo /usr/bin/nala upgrade -y && /usr/bin/sudo /usr/bin/nala autoremove
echo
echo APT Package Update Complete.
echo
if [ -f "/usr/local/bin/pihole" ]
then
echo Pi-Hole Detected
echo Updating Pi-Hole...
echo
/usr/bin/sudo /usr/local/bin/pihole -up
echo
echo Pi-Hole Update Complete.
echo
fi
if [ -f "/usr/local/bin/hb-service" ]
then
echo Homebridge Detected
echo Updating Homebridge NODE...
echo
/usr/bin/sudo /usr/local/bin/hb-service update-node
echo
echo Homebridge Node Update Complete.
echo
fi
echo Host Update Complete.
echo
echo Have a _____ day.
echo