Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F57009703
update.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
update.sh
View Options
#!/bin/sh
# -------------------------------------------------------------
# Nasqueron PaaS :: Alkane :: Recipe for deployment
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/webserver-content/org/nasqueron/files/recipes/admin.mail.nasqueron.org/update.sh
# Action: update
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
set
-e
cd
"
$ALKANE_SITE_PATH
"
# -------------------------------------------------------------
# Update git
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CURRENT_BRANCH
=
$(
git
rev-parse
--abbrev-ref
HEAD
)
if
[
"
$CURRENT_BRANCH
"
!
=
"production"
]
;
then
echo
"Code isn't in the production branch."
>
&
2
exit
1
fi
git
fetch
--all
git
diff-index
--quiet
HEAD
&&
git
pull
--rebase
# -------------------------------------------------------------
# Update composer
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
composer
update
--prefer-dist
--no-dev
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Nov 14, 19:37 (4 d, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4250485
Default Alt Text
update.sh (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment