WIP simpler installer

This commit is contained in:
AJ ONeal 2017-11-06 17:33:49 -07:00
parent e0fe188846
commit 11715f1405
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ pushd $my_app_dir/opt/goldilocks/lib/node_modules/goldilocks
git checkout $my_app_ver
popd
mkdir -p "$my_app_dir/opt/$my_app_name"/{lib,bin,etc}
ln -s ../lib/node_modules/$my_app_name/bin/$my_app_name.js bin/goldilocks
ln -s ../lib/node_modules/$my_app_name/bin/$my_app_name.js bin/goldilocks.js
mkdir -p "$my_app_dir/etc/$my_app_name"
chmod 775 "$my_app_dir/etc/$my_app_name"
cat "$my_app_dist/etc/$my_app_name/$my_app_name.example.yml" > "$my_app_dir/etc/$my_app_name/$my_app_name.example.yml"