File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,13 @@ if [ "$1" = "install" ]; then
13
13
exit 1
14
14
fi
15
15
16
- # remove the hb-service generated fix-permission pre-start script
17
- if [ -f /etc/hb-service/homebridge/prestart.d/10-fix-permissions ]; then
16
+ # remove the hb-service generated fix-permission pre-start script (fresh install only!)
17
+ if [ -z $2 ] && [ - f /etc/hb-service/homebridge/prestart.d/10-fix-permissions ]; then
18
18
rm -rf /etc/hb-service/homebridge/prestart.d/10-fix-permissions
19
19
fi
20
20
21
21
# check for existing homebridge.service
22
22
if [ -f /etc/systemd/system/homebridge.service ]; then
23
-
24
23
# try and get a list of the installed plugins and create a temporary package.json that will be used to install them again in the new location
25
24
if [ ! -f /var/lib/homebridge/package.json ] && [ -f /var/lib/homebridge/config.json ] && [ -f /var/lib/homebridge/.uix-secrets ]; then
26
25
if systemctl is-active --quiet homebridge.service; then
You can’t perform that action at this time.
0 commit comments