From c370063f8d021dd52171f0469028b7989e0eb8ca Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Mon, 9 Jul 2018 15:14:05 -0400 Subject: [PATCH] Update to use shared script --- script/alpine_setup | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/script/alpine_setup b/script/alpine_setup index c029d19b..28f836c2 100755 --- a/script/alpine_setup +++ b/script/alpine_setup @@ -3,20 +3,11 @@ # script/alpine_setup: Adds all the system packages, directors, users, etc. # required to run the application on Alpine -# If a command fails, exit the script -set -e +source "$(dirname "${0}")"/../script/include/global_header.inc.sh -# Ensure we are in the app root directory (not the /script directory) -cd "$(dirname "${0}")/.." +# Set app specific items +APP_USER="atst" +APP_UID="8010" -APP_USER=${1} -APP_GROUP=${2} - -apk update -apk upgrade - -apk add bash -apk add dumb-init - -addgroup -g 8000 -S "${APP_GROUP}" -adduser -u 8010 -D -S -G "${APP_GROUP}" "${APP_USER}" +# Run the shared alpine setup script +source ./script/include/run_alpine_setup