Update to use shared script

This commit is contained in:
Devon Mackay 2018-07-09 15:14:05 -04:00
parent ada0595f36
commit c370063f8d

View File

@ -3,20 +3,11 @@
# script/alpine_setup: Adds all the system packages, directors, users, etc. # script/alpine_setup: Adds all the system packages, directors, users, etc.
# required to run the application on Alpine # required to run the application on Alpine
# If a command fails, exit the script source "$(dirname "${0}")"/../script/include/global_header.inc.sh
set -e
# Ensure we are in the app root directory (not the /script directory) # Set app specific items
cd "$(dirname "${0}")/.." APP_USER="atst"
APP_UID="8010"
APP_USER=${1} # Run the shared alpine setup script
APP_GROUP=${2} source ./script/include/run_alpine_setup
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}"