WIP simpler installer

This commit is contained in:
AJ ONeal 2017-11-06 17:37:30 -07:00
parent 680cb05f89
commit 64fc41377f
1 changed files with 6 additions and 0 deletions

View File

@ -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