Commit 33eb17ca authored by Daniel Baur's avatar Daniel Baur

Fixed some small errors in ghost scripts

parent 8b1b3aca
......@@ -26,7 +26,7 @@ from cloudify import exceptions
from cloudify import utils
CONFIG_PATH = '~/ghost/config.js'
CONFIG_PATH = '/opt/ghost/config.js'
TEMPLATE_RESOURCE_NAME = 'resources/ghost/ghost.default.template'
......@@ -35,9 +35,9 @@ def configure(subject=None):
ctx.logger.info('Configuring ghost.')
_run('sudo apt-get install unzip',error_message='Failed installing unzip')
_run('curl -L https://ghost.org/zip/ghost-latest.zip -o ~/ghost.zip',error_message='Failed downloading ghost')
_run('unzip -uo ~/ghost.zip -d ~/ghost',error_message='Failed unzipping ghost')
_run('sudo apt-get -y install unzip',error_message='Failed installing unzip')
_run('sudo curl -L https://ghost.org/zip/ghost-latest.zip -o /opt/ghost.zip',error_message='Failed downloading ghost')
_run('sudo unzip -uo ~/ghost.zip -d /opt/ghost',error_message='Failed unzipping ghost')
template = Template(ctx.get_resource(TEMPLATE_RESOURCE_NAME))
......@@ -62,8 +62,8 @@ def configure(subject=None):
def start():
_run('npm install',error_message='Failed running npm install')
_run('npm start',error_message='Failed running npm start')
_run('cd /opt/ghost/ && sudo npm install /opt/ghost/',error_message='Failed running npm install')
_run('cd /opt/ghost/ && sudo npm start &',error_message='Failed running npm start')
def stop():
......
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