forked from GNUsocial/gnu-social
[TOOLS][PLUGINS][OAuth2] Add mechanism to allow plugins to have an install script. Add script for generating keys for OAuth
This commit is contained in:
14
plugins/OAuth2/bin/install.sh
Executable file
14
plugins/OAuth2/bin/install.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /var/www/social/file || exit 1
|
||||
|
||||
mkdir -p oauth && cd oauth || exit 1
|
||||
|
||||
if [ ! -f private.key ]; then
|
||||
openssl genrsa -out private.key 4096
|
||||
openssl rsa -in private.key -pubout -out public.key
|
||||
|
||||
chown www-data:www-data private.key public.key
|
||||
else
|
||||
echo "Keys exist, nothing to do"
|
||||
fi
|
Reference in New Issue
Block a user