posaune
[projects.git] / debian / xfhem.postinst
1 #!/bin/bash
2 set -e
3
4 chown fhem:dialout /opt/fhem/wagnertech.cfg
5
6 if ! grep wagnertech.cfg /opt/fhem/fhem.cfg >/dev/null
7 then
8         echo >> /opt/fhem/fhem.cfg
9         echo "# include from xfhem package" >> /opt/fhem/fhem.cfg
10         echo "include wagnertech.cfg" >> /opt/fhem/fhem.cfg
11         systemctl restart fhem
12 fi
13