Consistant gnusocial naming
This commit is contained in:
parent
5fb34df806
commit
e96cd9134b
|
@ -276,9 +276,9 @@ function install_gnusocial_main {
|
||||||
# NOTE: For the typical case always enable SSL and only
|
# NOTE: For the typical case always enable SSL and only
|
||||||
# disable it if in onion only mode. This is due to complexities
|
# disable it if in onion only mode. This is due to complexities
|
||||||
# with the way URLs are generated by GNU Social
|
# with the way URLs are generated by GNU Social
|
||||||
gnu_social_ssl='always'
|
gnusocial_ssl='always'
|
||||||
if [[ $ONION_ONLY != 'no' ]]; then
|
if [[ $ONION_ONLY != 'no' ]]; then
|
||||||
gnu_social_ssl='never'
|
gnusocial_ssl='never'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MICROBLOG_ONION_HOSTNAME=$(add_onion_service microblog 80 ${MICROBLOG_ONION_PORT})
|
MICROBLOG_ONION_HOSTNAME=$(add_onion_service microblog 80 ${MICROBLOG_ONION_PORT})
|
||||||
|
@ -289,12 +289,12 @@ function install_gnusocial_main {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the configuration
|
# Create the configuration
|
||||||
gnu_social_installer=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs/scripts/install_cli.php
|
gnusocial_installer=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs/scripts/install_cli.php
|
||||||
if [ ! -f $gnu_social_installer ]; then
|
if [ ! -f $gnusocial_installer ]; then
|
||||||
echo $'No GNU Social commandline installer found'
|
echo $'No GNU Social commandline installer found'
|
||||||
exit 53026
|
exit 53026
|
||||||
fi
|
fi
|
||||||
${gnu_social_installer} --server "${MICROBLOG_SERVER}" \
|
${gnusocial_installer} --server "${MICROBLOG_SERVER}" \
|
||||||
--host="localhost" --database="gnusocial" \
|
--host="localhost" --database="gnusocial" \
|
||||||
--dbtype=mysql --username="root" -v \
|
--dbtype=mysql --username="root" -v \
|
||||||
--password="$MARIADB_PASSWORD" \
|
--password="$MARIADB_PASSWORD" \
|
||||||
|
@ -302,7 +302,7 @@ function install_gnusocial_main {
|
||||||
--admin-nick="$MY_USERNAME" \
|
--admin-nick="$MY_USERNAME" \
|
||||||
--admin-pass="$MICROBLOG_ADMIN_PASSWORD" \
|
--admin-pass="$MICROBLOG_ADMIN_PASSWORD" \
|
||||||
--site-profile="community" \
|
--site-profile="community" \
|
||||||
--ssl=${gnu_social_ssl}
|
--ssl=${gnusocial_ssl}
|
||||||
# There can be a lot of warnings here so the return value check is disabled
|
# There can be a lot of warnings here so the return value check is disabled
|
||||||
#if [ ! "$?" = "0" ]; then
|
#if [ ! "$?" = "0" ]; then
|
||||||
# # failed to install
|
# # failed to install
|
||||||
|
@ -475,7 +475,7 @@ function install_gnusocial_plugin_sharings_theme {
|
||||||
echo 'install_gnusocial_plugin_sharings_theme' >> $COMPLETION_FILE
|
echo 'install_gnusocial_plugin_sharings_theme' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
function expire_gnu_social_posts {
|
function expire_gnusocial_posts {
|
||||||
# To prevent the database size from growing endlessly this script expires posts
|
# To prevent the database size from growing endlessly this script expires posts
|
||||||
# after a number of months
|
# after a number of months
|
||||||
if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" || $SYSTEM_TYPE == "$VARIANT_MAILBOX" || $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_DEVELOPER" || $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
|
if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" || $SYSTEM_TYPE == "$VARIANT_MAILBOX" || $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_DEVELOPER" || $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
|
||||||
|
@ -686,7 +686,7 @@ function install_gnusocial {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
install_gnusocial_main
|
install_gnusocial_main
|
||||||
expire_gnu_social_posts
|
expire_gnusocial_posts
|
||||||
install_gnusocial_theme
|
install_gnusocial_theme
|
||||||
install_gnusocial_markdown
|
install_gnusocial_markdown
|
||||||
install_gnusocial_plugin_sharings
|
install_gnusocial_plugin_sharings
|
||||||
|
|
|
@ -829,7 +829,7 @@ function restore_xmpp {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function restore_gnu_social {
|
function restore_gnusocial {
|
||||||
if [[ $RESTORE_APP != 'all' ]]; then
|
if [[ $RESTORE_APP != 'all' ]]; then
|
||||||
if [[ $RESTORE_APP != 'gnusocial' ]]; then
|
if [[ $RESTORE_APP != 'gnusocial' ]]; then
|
||||||
return
|
return
|
||||||
|
@ -1276,7 +1276,7 @@ restore_certs
|
||||||
restore_personal_settings
|
restore_personal_settings
|
||||||
restore_mailing_list
|
restore_mailing_list
|
||||||
restore_xmpp
|
restore_xmpp
|
||||||
restore_gnu_social
|
restore_gnusocial
|
||||||
restore_hubzilla
|
restore_hubzilla
|
||||||
restore_rss
|
restore_rss
|
||||||
restore_syncthing
|
restore_syncthing
|
||||||
|
|
|
@ -693,7 +693,7 @@ function restore_xmpp {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function restore_gnu_social {
|
function restore_gnusocial {
|
||||||
if [[ $RESTORE_APP != 'all' ]]; then
|
if [[ $RESTORE_APP != 'all' ]]; then
|
||||||
if [[ $RESTORE_APP != 'gnusocial' ]]; then
|
if [[ $RESTORE_APP != 'gnusocial' ]]; then
|
||||||
return
|
return
|
||||||
|
@ -1116,7 +1116,7 @@ restore_certs
|
||||||
restore_personal_settings
|
restore_personal_settings
|
||||||
restore_mailing_list
|
restore_mailing_list
|
||||||
restore_xmpp
|
restore_xmpp
|
||||||
restore_gnu_social
|
restore_gnusocial
|
||||||
restore_hubzilla
|
restore_hubzilla
|
||||||
restore_rss
|
restore_rss
|
||||||
restore_syncthing
|
restore_syncthing
|
||||||
|
|
Loading…
Reference in New Issue