summarylogtreecommitdiffstats
path: root/fhem.install
blob: 0fbf327d0db5f328e78cc5622e116c81727017d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
post_install() {
  systemd-sysusers fhem.conf
  chgrp fhem /usr/share/fhem
}

post_upgrade() {
  if [[ -e /opt/fhem/fhem.cfg ]]; then
    echo "Found config from previous version, copying /opt/fhem/fhem.cfg to /etc/fhem.cfg"
    cp /opt/fhem/fhem.cfg /etc/fhem.cfg
  fi

  systemctl daemon-reload
}