Commit d27a26a2 authored by Rafael Monnerat's avatar Rafael Monnerat

Copy Wordpress application

parent 63c56d57
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
############################################################################## ##############################################################################
from slapos.recipe.librecipe import GenericBaseRecipe from slapos.recipe.librecipe import GenericBaseRecipe
from binascii import b2a_uu as uuencode from binascii import b2a_uu as uuencode
import shutil
import binascii import binascii
import os import os
import sys import sys
...@@ -51,6 +52,11 @@ class Recipe(GenericBaseRecipe): ...@@ -51,6 +52,11 @@ class Recipe(GenericBaseRecipe):
php_cgi_address = self.options["php-cgi-address"] php_cgi_address = self.options["php-cgi-address"]
) )
# Copy application
if not os.path.exists(self.options['nginx-root']):
shutil.copytree(self.options['source'],
self.options['nginx-root'])
# Configs # Configs
self.createFile( self.createFile(
self.options['config_file'], self.options['config_file'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment