summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--WebappConfig/config.py11
-rw-r--r--WebappConfig/worker.py2
-rw-r--r--doc/webapp-config.8.xml1
3 files changed, 7 insertions, 7 deletions
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index bb86a55..26eab59 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -490,8 +490,7 @@ class Config:
' when creating virtual files. <NOTE>: some pack'
'ages will not work if you use this option')
- group.add_option('--cp',
- '--copy',
+ group.add_option('--copy',
action='store_true',
help = 'Directly copy the webapp files from'
' the /usr/share/webapps/ directory when installing'
@@ -1027,12 +1026,14 @@ class Config:
self.config.set('USER', 'g_link_type', 'soft')
- elif (self.config.has_option('USER', 'g_copy') and
- self.config.getboolean('USER', 'g_copy')):
+ elif ((self.config.has_option('USER', 'vhost_link_type') and
+ self.config.get('USER', 'vhost_link_type') == 'soft') or
+ (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')
+ self.config.set('USER', 'g_link_type', 'copy')
else:
diff --git a/WebappConfig/worker.py b/WebappConfig/worker.py
index 250f068..5b10060 100644
--- a/WebappConfig/worker.py
+++ b/WebappConfig/worker.py
@@ -508,7 +508,7 @@ class WebappAdd:
if self.__v:
OUT.warn('Failed to softlink (' + str(e) + ')')
- elif self.__link_type == 'clone':
+ elif self.__link_type == 'copy':
try:
OUT.debug('Trying to copy files directly', 8)
diff --git a/doc/webapp-config.8.xml b/doc/webapp-config.8.xml
index 5b0048b..459e301 100644
--- a/doc/webapp-config.8.xml
+++ b/doc/webapp-config.8.xml
@@ -473,7 +473,6 @@
</varlistentry>
<varlistentry>
- <term><option>--cp</option></term>
<term><option>--copy</option></term>
<listitem>
<para>Use this option to create the virtual copy by copying the files from the <filename>/usr/share/webapps/</filename> directories.</para>