2022-02-26 21:18:40 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-10-20 06:38:49 +09:00
|
|
|
mkdir /var/www/social/file && cd /var/www/social/file || exit 1
|
2022-02-26 21:18:40 +09:00
|
|
|
|
|
|
|
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
|