Skip to content

Commit 94ac50c

Browse files
author
Julio Montes
committed
Fix to get and process userdata once
1 parent 1638cb5 commit 94ac50c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ int main(int argc, char *argv[]) {
288288
datasource_handler = datasource_structs[i];
289289
if (!datasource_handler->start()) {
290290
result_code = EXIT_FAILURE;
291-
} else if(first_boot_setup) {
291+
} else {
292292
first_boot = is_first_boot();
293293
}
294294
break;
@@ -300,11 +300,11 @@ int main(int argc, char *argv[]) {
300300
async_task_run((GThreadFunc)async_fixdisk, NULL);
301301
}
302302

303-
if (first_boot) {
303+
if (first_boot_setup && first_boot) {
304304
async_task_run((GThreadFunc)async_setup_first_boot, NULL);
305305
}
306306

307-
if (first_boot) {
307+
if (first_boot_setup && first_boot) {
308308
/* default user will be used by ccmodules and datasources */
309309
g_snprintf(command, LINE_MAX, USERADD_PATH
310310
" -U -d '%s' -G '%s' -f '%s' -e '%s' -s '%s' -c '%s' -p '%s' '%s'"

0 commit comments

Comments
 (0)