Commit d27a26a2 authored by Rafael Monnerat's avatar Rafael Monnerat

Copy Wordpress application

parent 63c56d57
......@@ -26,6 +26,7 @@
##############################################################################
from slapos.recipe.librecipe import GenericBaseRecipe
from binascii import b2a_uu as uuencode
import shutil
import binascii
import os
import sys
......@@ -51,6 +52,11 @@ class Recipe(GenericBaseRecipe):
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
self.createFile(
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