summarylogtreecommitdiffstats
path: root/zwave-js-ui.install
blob: dd45b44c988729108f9a0f2211c472beeaf8bea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
post_install() {
	if [ -d "/etc/zwavejs2mqtt" ]; then
		echo ":: ZWaveJS2MQTT has been renamed to ZWave JS UI."
		echo "   To move your old zwavejs2mqtt files, use"
		echo "   mv /var/lib/zwavejs2mqtt/{*,.*} /var/lib/zwave-js-ui && mv /etc/zwavejs2mqtt/* /etc/zwave-js-ui/ && chown -R zwave-js-ui:zwave-js-ui /var/lib/zwave-js-ui && sed 's/zwavejs2mqtt/zwave-js-ui/g' -i /var/lib/zwave-js-ui/settings.json"
		echo "   You may have to merge /etc/zwave-js-ui/app.ts{,.pacsave}, e.g. vimdiff app.ts{,.pacsave}"
		echo "   This has to be done only once after switching to zwave-js-ui."
	fi
}

post_upgrade() {
	post_install
}