]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
installer: Don't accept the license in unattended mode
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Mar 2015 15:10:03 +0000 (16:10 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Mar 2015 15:10:03 +0000 (16:10 +0100)
src/installer/main.c

index 358b2c46ffdf892a17a894ec7f6fbb6c2d367259..75c8c5ae0b4914e3fe1013aa9f4bfff3603bfd84 100644 (file)
@@ -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);