Move repo if needed
This commit is contained in:
parent
f449878573
commit
b783cf465d
|
@ -512,6 +512,9 @@ function install_pleroma {
|
||||||
|
|
||||||
|
|
||||||
# get the repo
|
# get the repo
|
||||||
|
if [ -f /repos/pleroma/index.html ]; then
|
||||||
|
mv /repos/pleroma /repos/pleroma-fe
|
||||||
|
fi
|
||||||
if [ -d /repos/pleroma ]; then
|
if [ -d /repos/pleroma ]; then
|
||||||
mkdir -p $PLEROMA_DIR
|
mkdir -p $PLEROMA_DIR
|
||||||
cp -r -p /repos/pleroma/. $PLEROMA_DIR
|
cp -r -p /repos/pleroma/. $PLEROMA_DIR
|
||||||
|
@ -578,7 +581,7 @@ function install_pleroma {
|
||||||
nginx_limits $PLEROMA_DOMAIN_NAME '15m'
|
nginx_limits $PLEROMA_DOMAIN_NAME '15m'
|
||||||
echo " proxy_pass http://localhost:$PLEROMA_PORT;" >> $pleroma_nginx_site
|
echo " proxy_pass http://localhost:$PLEROMA_PORT;" >> $pleroma_nginx_site
|
||||||
echo ' }' >> $pleroma_nginx_site
|
echo ' }' >> $pleroma_nginx_site
|
||||||
echo ' include snippets/well-known.conf;' >> $pleroma_nginx_site
|
echo ' # include snippets/well-known.conf;' >> $pleroma_nginx_site
|
||||||
echo '}' >> $pleroma_nginx_site
|
echo '}' >> $pleroma_nginx_site
|
||||||
else
|
else
|
||||||
echo -n '' > $pleroma_nginx_site
|
echo -n '' > $pleroma_nginx_site
|
||||||
|
@ -605,7 +608,7 @@ function install_pleroma {
|
||||||
nginx_limits $PLEROMA_DOMAIN_NAME '15m'
|
nginx_limits $PLEROMA_DOMAIN_NAME '15m'
|
||||||
echo " proxy_pass http://localhost:$PLEROMA_PORT;" >> $pleroma_nginx_site
|
echo " proxy_pass http://localhost:$PLEROMA_PORT;" >> $pleroma_nginx_site
|
||||||
echo ' }' >> $pleroma_nginx_site
|
echo ' }' >> $pleroma_nginx_site
|
||||||
echo ' include snippets/well-known.conf;' >> $pleroma_nginx_site
|
echo ' # include snippets/well-known.conf;' >> $pleroma_nginx_site
|
||||||
echo '}' >> $pleroma_nginx_site
|
echo '}' >> $pleroma_nginx_site
|
||||||
|
|
||||||
function_check create_site_certificate
|
function_check create_site_certificate
|
||||||
|
|
Loading…
Reference in New Issue