This commit is contained in:
AJ ONeal 2017-06-08 22:13:54 +00:00
commit 7344c85454
3 changed files with 12 additions and 3 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
*.*sw*
bower_components/
assets/

View File

@ -4,8 +4,13 @@ It must be installed to `/srv/walnut/packages/pages/org.oauth3`
```bash
git clone git@git.daplie.com:OAuth3/org.oauth3.git /srv/walnut/packages/pages/org.oauth3
git checkout fs-nosql
pushd /srv/walnut/packages/pages/org.oauth3
bash ./install.sh
popd
```
```bash
echo "org.oauth3" >> /srv/walnut/packages/sites/EXAMPLE.COM
```
This uses the OAuth3 JavaScript SDK `oauth3.js` as a subpackage in `/srv/walnut/packages/pages/org.oauth3/assets/org.oauth3`.

6
install.sh Normal file → Executable file
View File

@ -1,10 +1,12 @@
#!/bin/bash
set -e
set -u
# git clone git@git.daplie.com:OAuth3/org.oauth3.git /srv/walnut/packages/pages/org.oauth3
mkdir -p assets
if [ -d ./assets/org.oauth3 ]; then
git clone git@git.daplie.com:OAuth3/oauth3.js.git ./assets/org.oauth3
if ! [ -d ./assets/org.oauth3 ]; then
git clone git@git.daplie.com:OAuth3/oauth3.js.git ./assets/org.oauth3
fi
pushd ./assets/org.oauth3
git checkout v1