prepare config

This commit is contained in:
rootzoll
2021-05-03 14:56:39 +02:00
parent 280fc2886f
commit 8e984c58c9

View File

@@ -105,11 +105,18 @@ if [ "${migrationOS}" == "" ]; then
echo "# CREATING raspiblitz.conf from your setup choices"
# prepare the config file (what will later become the raspiblitz.config)
# prepate config file
CONFIGFILE="/mnt/hdd/raspiblitz.conf.tmp"
sudo rm $CONFIGFILE 2>/dev/null
sudo chown admin:admin $CONFIGFILE
sudo chmod 777 $CONFIGFILE
# source the raspiblitz version
source /home/admin/_version.info
CONFIGFILE="/mnt/hdd/raspiblitz.config"
rm $CONFIGFILE 2>/dev/null
# source the setup state fresh
source $SETUPFILE
echo "# RASPIBLITZ CONFIG FILE" > $CONFIGFILE
echo "raspiBlitzVersion='${codeVersion}'" >> $CONFIGFILE
echo "lcdrotate=1" >> $CONFIGFILE
@@ -124,6 +131,9 @@ else
# Process Migration
# TODO: move this part later outside of dialog controller and combine with data from WebUI
# source the setup state fresh
source $SETUPFILE
echo "TODO: Process Migration"
exit 1