Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Baur
cloudify3
Commits
33eb17ca
Commit
33eb17ca
authored
Jun 17, 2015
by
Daniel Baur
Browse files
Fixed some small errors in ghost scripts
parent
8b1b3aca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ghost-openstack/scripts/ghost/ghost.py
ghost-openstack/scripts/ghost/ghost.py
+6
-6
No files found.
ghost-openstack/scripts/ghost/ghost.py
View file @
33eb17ca
...
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment