Prepare for the possibility of a pleroma app
This commit is contained in:
parent
316557fe43
commit
b89d1e8878
|
@ -983,7 +983,7 @@ function install_gnusocial {
|
|||
else
|
||||
function_check install_nodejs
|
||||
install_nodejs pleroma-gnusocial
|
||||
install_pleroma "gnusocial" "$GNUSOCIAL_DOMAIN_NAME" "$GNUSOCIAL_BACKGROUND_IMAGE_URL" "$GNUSOCIAL_TITLE"
|
||||
install_pleroma_front_end "gnusocial" "$GNUSOCIAL_DOMAIN_NAME" "$GNUSOCIAL_BACKGROUND_IMAGE_URL" "$GNUSOCIAL_TITLE"
|
||||
install_gnusocial_default_background "gnusocial" "$GNUSOCIAL_DOMAIN_NAME"
|
||||
sed -i 's|"theme":.*|"theme": "base16-apathy.css",|g' /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/static/config.json
|
||||
fi
|
||||
|
|
|
@ -767,7 +767,7 @@ function install_postactiv {
|
|||
else
|
||||
function_check install_nodejs
|
||||
install_nodejs pleroma-gnusocial
|
||||
install_pleroma "postactiv" "$POSTACTIV_DOMAIN_NAME" "$POSTACTIV_BACKGROUND_IMAGE_URL" "$POSTACTIV_TITLE"
|
||||
install_pleroma_front_end "postactiv" "$POSTACTIV_DOMAIN_NAME" "$POSTACTIV_BACKGROUND_IMAGE_URL" "$POSTACTIV_TITLE"
|
||||
install_gnusocial_default_background "postactiv" "$POSTACTIV_DOMAIN_NAME"
|
||||
sed -i 's|"theme":.*|"theme": "base16-apathy.css",|g' /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs/static/config.json
|
||||
fi
|
||||
|
|
|
@ -202,7 +202,7 @@ function install_gnusocial_default_background {
|
|||
fi
|
||||
}
|
||||
|
||||
function install_pleroma {
|
||||
function install_pleroma_front_end {
|
||||
app_name="$1"
|
||||
pleroma_domain="$2"
|
||||
background_url="$3"
|
||||
|
@ -284,7 +284,7 @@ function upgrade_pleroma {
|
|||
fi
|
||||
chown -R www-data:www-data /var/www/${domain_name}/htdocs
|
||||
else
|
||||
install_pleroma "${app_name}" "${domain_name}" "${background_url}" "${title}"
|
||||
install_pleroma_front_end "${app_name}" "${domain_name}" "${background_url}" "${title}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue