Install prerequisites for pleroma in social instance

This commit is contained in:
Bob Mottram 2018-03-14 19:05:24 +00:00
parent 1e90417964
commit e729be95a3
3 changed files with 15 additions and 3 deletions

View File

@ -938,6 +938,18 @@ function remove_pleroma {
remove_ddns_domain "$PLEROMA_DOMAIN_NAME"
}
function image_install_pleroma {
if [[ "$SOCIALINSTANCE" != 'pleroma' ]]; then
return
fi
# shellcheck disable=SC2154
chroot "$rootdir" apt-get -yq install wget imagemagick
image_install_elixir
image_install_postgresql
}
function install_pleroma {
if [ ! $ONION_ONLY ]; then
ONION_ONLY='no'

View File

@ -2158,12 +2158,12 @@ create_generic_image
atheros_wifi
continue_installation
image_install_nodejs
image_install_elixir
initialise_mesh
configure_wifi
configure_user_interface
image_setup_utils
image_install_inadyn
image_install_pleroma
image_preinstall_repos
# remove downloaded packages

View File

@ -49,7 +49,7 @@ function get_postgresql_password {
fi
}
function mesh_install_postgresql {
function image_install_postgresql {
# shellcheck disable=SC2154,SC2086
chroot "$rootdir" apt-get -yq install $POSTGRESQL_PACKAGES
@ -66,7 +66,7 @@ function mesh_install_postgresql {
function install_postgresql {
if [[ $VARIANT == "mesh"* ]]; then
mesh_install_postgresql
image_install_postgresql
return
fi