mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
switch position of source setupdata
This commit is contained in:
@@ -467,9 +467,6 @@ if [ ${isMounted} -eq 0 ]; then
|
|||||||
source ${infoFile}
|
source ${infoFile}
|
||||||
echo "# PROVISION PROCESS with setupPhase(${setupPhase})" >> $logFile
|
echo "# PROVISION PROCESS with setupPhase(${setupPhase})" >> $logFile
|
||||||
|
|
||||||
# try to load setup values if available
|
|
||||||
source ${setupFile} 2>/dev/null
|
|
||||||
|
|
||||||
# mark system on sd card as in setup process
|
# mark system on sd card as in setup process
|
||||||
echo "the provision process was started but did not finish yet" > /home/admin/provision.flag
|
echo "the provision process was started but did not finish yet" > /home/admin/provision.flag
|
||||||
|
|
||||||
@@ -498,6 +495,7 @@ if [ ${isMounted} -eq 0 ]; then
|
|||||||
###################################
|
###################################
|
||||||
# Set Password A (in all cases)
|
# Set Password A (in all cases)
|
||||||
|
|
||||||
|
source ${setupFile} 2>$logFile
|
||||||
if [ "${passwordA}" == "" ]; then
|
if [ "${passwordA}" == "" ]; then
|
||||||
sed -i "s/^state=.*/state=error/g" ${infoFile}
|
sed -i "s/^state=.*/state=error/g" ${infoFile}
|
||||||
sed -i "s/^message=.*/message='config: missing passwordA'/g" ${infoFile}
|
sed -i "s/^message=.*/message='config: missing passwordA'/g" ${infoFile}
|
||||||
|
Reference in New Issue
Block a user