Page MenuHomeDevCentral

install-packages.sh
No OneTemporary

install-packages.sh

#!/bin/sh
# -------------------------------------------------------------
# Nasqueron PaaS :: Alkane :: Recipe for deployment
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/webserver-alkane/alkane/files/recipes/_lib/install-package.sh
# Action: init
# -------------------------------------------------------------
#
# <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"
if [ -f "composer.json" ]; then
if [ -d "$ALKANE_SITE_PATH/vendor" ]; then
echo "$ALKANE_SITE_PATH/vendor directory already exists." >&2
exit 1
fi
composer install
fi
if [ -f "package.json" ]; then
if [ -d "$ALKANE_SITE_PATH/node_modules" ]; then
echo "$ALKANE_SITE_PATH/node_modules directory already exists." >&2
exit 1
fi
yarn install
fi

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Nov 13, 03:02 (4 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4195968
Default Alt Text
install-packages.sh (1 KB)

Event Timeline