From 53103ab55c63eda3cd302c9b8af743429b62726c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 16 Mar 2015 16:10:03 +0100 Subject: [PATCH] installer: Don't accept the license in unattended mode --- src/installer/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/installer/main.c b/src/installer/main.c index 358b2c46ff..75c8c5ae0b 100644 --- a/src/installer/main.c +++ b/src/installer/main.c @@ -833,8 +833,11 @@ int main(int argc, char *argv[]) { newtPopWindow(); - /* Set marker that the user has already accepted the gpl */ - mysystem(logfile, "/usr/bin/touch /harddisk/var/ipfire/main/gpl_accepted"); + /* Set marker that the user has already accepted the GPL if the license has been shown + * in the installation process. In unatteded mode, the user will be presented the + * license when he or she logs on to the web user interface for the first time. */ + if (!config.unattended) + mysystem(logfile, "/usr/bin/touch /harddisk/var/ipfire/main/gpl_accepted"); /* Copy restore file from cdrom */ char* backup_file = hw_find_backup_file(logfile, SOURCE_MOUNT_PATH); -- 2.39.2