You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
486 B
22 lines
486 B
#!/bin/bash
|
|
|
|
set -ueo pipefail
|
|
export PATH="/lib/rc/bin:$PATH"
|
|
scriptpath=$(dirname $(readlink -f $0))
|
|
|
|
. /var/db/repos/calculate/scripts/ini.sh
|
|
|
|
chmod o+r /var/calculate/ini.env
|
|
for script in $scriptpath/step/*.sh; do
|
|
"$script"
|
|
done
|
|
|
|
if [[ ! -e /etc/runlevels/default/homeassistant ]]; then
|
|
cl-setup-system
|
|
rc-update -u
|
|
fi
|
|
openrc
|
|
chmod 600 /var/calculate/ini.env
|
|
|
|
echo -e "\nAll is done! Open the link ${ini[homeassistant.protocol]}://${ini[homeassistant.domain]} on your browser."
|