--- config.py 2013-03-02 16:49:10.404696624 -0500 +++ config.py.alt 2013-03-02 14:54:06.113165999 -0500 @@ -486,10 +486,17 @@ group.add_option('--soft', action='store_true', - help = 'Use symbolic links instead of hard links' + help = 'Use symbolic links instead of hard links' ' when creating virtual files. : some pack' 'ages will not work if you use this option') + group.add_option('--copy', + '--co', + action='store_true', + help = 'Directly copy the webapp files from' + ' the /usr/share/webapps/ directory when installing' + ' the webapp.') + group.add_option('--virtual-files', '--vf', type = 'choice', @@ -845,8 +852,9 @@ 'user' : 'vhost_config_uid', 'group' : 'vhost_config_gid', 'soft' : 'g_soft', - 'virtual_files': 'vhost_config_virtual_files', - 'default_dirs' : 'vhost_config_default_dirs', + 'copy' : 'g_copy', + 'virtual_files': 'vhost_config_virtual_file', + 'default_dirs' : 'vhost_config_default_dirs', 'pretend' : 'g_pretend', 'verbose' : 'g_verbose', 'bug_report' : 'g_bugreport'} @@ -990,6 +998,13 @@ OUT.debug('Selecting soft links' , 7) self.config.set('USER', 'g_link_type', 'soft') + + elif (self.config.has_option('USER', 'g_copy') and + self.config.getboolean('USER', 'g_copy')): + + OUT.debug('Selecting copying of links', 7) + + self.config.set('USER', 'g_link_type', 'clone') else: OUT.debug('Selecting hard links' , 7)