From 64fc41377f4421f11773a0a42dd12efc774aba0f Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 6 Nov 2017 17:37:30 -0700 Subject: [PATCH] WIP simpler installer --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index f2b20e0..8c73d0b 100644 --- a/install.sh +++ b/install.sh @@ -56,6 +56,9 @@ export NPM_CONFIG_PREFIX=$my_app_dir/opt/goldilocks http_bash "https://git.coolaj86.com/coolaj86/node-installer.sh/raw/v1.1/install.sh" my_npm="$NPM_CONFIG_PREFIX/bin/npm" $my_npm install -g npm@4 +pushd $my_app_dir/opt/goldilocks/lib/node_modules/goldilocks + $my_npm install +popd pushd $my_app_dir/opt/goldilocks/lib/node_modules/goldilocks/packages/assets OAUTH3_GIT_URL="https://git.daplie.com/Oauth3/oauth3.js.git" git clone ${OAUTH3_GIT_URL} oauth3.org || true @@ -111,3 +114,6 @@ $sudo_cmd chown -R $my_user:$my_group $my_root/var/www $my_root/srv/www # directories have the same owner and group. $sudo_cmd chmod -R ug+rwX /opt/$my_app_name find /opt/$my_app_name -type d -exec $sudo_cmd chmod ug+s {} \; + + +rm -rf $my_app_dir