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" 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 { function install_pleroma {
if [ ! $ONION_ONLY ]; then if [ ! $ONION_ONLY ]; then
ONION_ONLY='no' ONION_ONLY='no'

View File

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

View File

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