summarylogtreecommitdiffstats
path: root/fhem.install
blob: 59a3577a84cf567283a0f50b92c70e1956c46aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pkgname='fhem'

post_install() {
  systemd-sysusers $pkgname.conf
  systemd-tmpfiles --create $pkgname.conf
}

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
}