Placeholder functions for turning logging on or off

This commit is contained in:
Bob Mottram 2017-07-01 19:14:28 +01:00
parent d02236c1eb
commit b060a56dbf
42 changed files with 334 additions and 0 deletions

View File

@ -39,6 +39,14 @@ BATMAN_CELLID='any'
batman_variables=(MY_USERNAME
BATMAN_CELLID)
function logging_on_batman {
echo -n ''
}
function logging_off_batman {
echo -n ''
}
function install_interactive_batman {
echo -n ''
APP_INSTALLED=1

View File

@ -42,6 +42,14 @@ CRYPTPAD_DIR=/etc/cryptpad
cryptpad_variables=(ONION_ONLY)
function logging_on_cryptpad {
echo -n ''
}
function logging_off_cryptpad {
echo -n ''
}
function remove_user_cryptpad {
remove_username="$1"
}

View File

@ -38,6 +38,14 @@ dlna_variables=(SYSTEM_TYPE
INSTALLED_WITHIN_DOCKER
MY_USERNAME)
function logging_on_dlna {
echo -n ''
}
function logging_off_dlna {
echo -n ''
}
function configure_interactive_dlna {
while true
do

View File

@ -49,6 +49,14 @@ dokuwiki_variables=(ONION_ONLY
DOKUWIKI_CODE
DDNS_PROVIDER)
function logging_on_dokuwiki {
echo -n ''
}
function logging_off_dokuwiki {
echo -n ''
}
function install_interactive_dokuwiki {
if [[ $ONION_ONLY != "no" ]]; then
DOKUWIKI_TITLE=$'My Dokuwiki'

View File

@ -36,6 +36,14 @@ SHOW_ON_ABOUT=0
emacs_variables=(USB_MOUNT
MY_USERNAME)
function logging_on_emacs {
echo -n ''
}
function logging_off_emacs {
echo -n ''
}
function reconfigure_emacs {
echo -n ''
}

View File

@ -52,6 +52,14 @@ etherpad_variables=(ONION_ONLY
DDNS_PROVIDER
MY_USERNAME)
function logging_on_etherpad {
echo -n ''
}
function logging_off_etherpad {
echo -n ''
}
function etherpad_password_hash {
echo $(python -c "from passlib.hash import bcrypt;print(bcrypt.encrypt(\"$1\", rounds=10))")
}

View File

@ -50,6 +50,14 @@ friendica_variables=(ONION_ONLY
FRIENDICA_REPO
FRIENDICA_ADDONS_REPO)
function logging_on_friendica {
echo -n ''
}
function logging_off_friendica {
echo -n ''
}
function remove_user_friendica {
remove_username="$1"
${PROJECT_NAME}-pass -u $remove_username --rmapp friendica

View File

@ -49,6 +49,14 @@ ghost_variables=(GHOST_DOMAIN_NAME
DDNS_PROVIDER
MY_USERNAME)
function logging_on_ghost {
echo -n ''
}
function logging_off_ghost {
echo -n ''
}
function ghost_replace_jquery {
sed -i "s|code.jquery.com/jquery-${previous_jquery_version}.min.js|$GHOST_DOMAIN_NAME/jquery-${jquery_version}.js|g" content/themes/casper/default.hbs
sed -i "s|code.jquery.com/jquery-${previous_jquery_version}.min.js|$GHOST_DOMAIN_NAME/jquery-${jquery_version}.js|g" core/server/data/migration/fixtures/004/01-move-jquery-with-alert.js

View File

@ -57,6 +57,14 @@ gnusocial_variables=(ONION_ONLY
GNUSOCIAL_EXPIRE_MONTHS
MY_USERNAME)
function logging_on_gnusocial {
echo -n ''
}
function logging_off_gnusocial {
echo -n ''
}
function gnusocial_fix_endless_reloads {
# This fixes a bug introduced with commit 5f7032dfee1fd202c14e76a9f8b37af35d584901
# and which causes OrFox to endlessly reload the page

View File

@ -51,6 +51,14 @@ gogs_variables=(ONION_ONLY
DDNS_PROVIDER
ARCHITECTURE)
function logging_on_gogs {
echo -n ''
}
function logging_off_gogs {
echo -n ''
}
function change_password_gogs {
curr_username="$1"
new_user_password="$2"

View File

@ -50,6 +50,14 @@ htmly_variables=(HTMLY_REPO
DDNS_PROVIDER
MY_USERNAME)
function logging_on_htmly {
echo -n ''
}
function logging_off_htmly {
echo -n ''
}
function set_avatar_from_url {
AVATAR="$1"

View File

@ -51,6 +51,14 @@ hubzilla_variables=(ONION_ONLY
HUBZILLA_REPO
HUBZILLA_ADDONS_REPO)
function logging_on_hubzilla {
echo -n ''
}
function logging_off_hubzilla {
echo -n ''
}
function remove_user_hubzilla {
remove_username="$1"
${PROJECT_NAME}-pass -u $remove_username --rmapp hubzilla

View File

@ -48,6 +48,14 @@ ipfs_variables=(IPFS_GO_VERSION
IPFS_KEY_LENGTH
IPFS_PORT)
function logging_on_ipfs {
echo -n ''
}
function logging_off_ipfs {
echo -n ''
}
function install_interactive_ipfs {
echo -n ''
APP_INSTALLED=1

View File

@ -54,6 +54,14 @@ irc_variables=(MY_USERNAME
IRC_BUFFER_LENGTH
ONION_ONLY)
function logging_on_irc {
echo -n ''
}
function logging_off_irc {
echo -n ''
}
function irc_get_global_password {
echo $(cat /etc/ngircd/ngircd.conf | grep "Password =" | head -n 1 | awk -F '=' '{print $2}')
}

View File

@ -51,6 +51,14 @@ jitsi_variables=(ONION_ONLY
DEFAULT_DOMAIN_NAME
MY_USERNAME)
function logging_on_jitsi {
echo -n ''
}
function logging_off_jitsi {
echo -n ''
}
function jitsi_disable_google_spyware {
# Presumably they included Google Analytics for benign reasons, but it's
# an obvious security problem. This should disable it.

View File

@ -49,6 +49,14 @@ koel_variables=(ONION_ONLY
MY_EMAIL_ADDRESS
MY_USERNAME)
function logging_on_koel {
echo -n ''
}
function logging_off_koel {
echo -n ''
}
function koel_remove_gravatar {
cd /var/www/${KOEL_DOMAIN_NAME}/htdocs
sed -i "s|www.gravatar.com|${KOEL_DOMAIN_NAME}|g" node_modules/browser-sync-ui/public/js/app.js.map

View File

@ -44,6 +44,14 @@ librevault_variables=(PROTOBUF_REPO
LIBREVAULT_REPO
LIBREVAULT_PORT)
function logging_on_librevault {
echo -n ''
}
function logging_off_librevault {
echo -n ''
}
function install_interactive_librevault {
echo -n ''
APP_INSTALLED=1

View File

@ -46,6 +46,13 @@ lychee_variables=(LYCHEE_REPO
DDNS_PROVIDER
MY_USERNAME)
function logging_on_lychee {
echo -n ''
}
function logging_off_lychee {
echo -n ''
}
function lychee_create_database {
if [ -f ${IMAGE_PASSWORD_FILE} ]; then

View File

@ -47,6 +47,14 @@ mailpile_variables=(MAILPILE_REPO
DDNS_PROVIDER
MY_USERNAME)
function logging_on_mailpile {
echo -n ''
}
function logging_off_mailpile {
echo -n ''
}
function remove_user_mailpile {
remove_username="$1"
${PROJECT_NAME}-pass -u $remove_username --rmapp mailpile

View File

@ -62,6 +62,14 @@ matrix_variables=(ONION_ONLY
MATRIX_DOMAIN_NAME
MATRIX_CODE)
function logging_on_matrix {
echo -n ''
}
function logging_off_matrix {
echo -n ''
}
function matrix_nginx {
matrix_nginx_site=/etc/nginx/sites-available/$MATRIX_DOMAIN_NAME
if [[ $ONION_ONLY == "no" ]]; then

View File

@ -49,6 +49,14 @@ mediagoblin_variables=(ONION_ONLY
DEFAULT_DOMAIN_NAME
DDNS_PROVIDER)
function logging_on_mediagoblin {
echo -n ''
}
function logging_off_mediagoblin {
echo -n ''
}
function mediagoblin_fix_email {
# This is a crude hack and there may be a better solution
# The cause of verification problems might be that the mediagoblin user

View File

@ -47,6 +47,14 @@ movim_variables=(ONION_ONLY
DDNS_PROVIDER
MY_USERNAME)
function logging_on_movim {
echo -n ''
}
function logging_off_movim {
echo -n ''
}
function remove_user_movim {
remove_username="$1"

View File

@ -47,6 +47,14 @@ mumble_variables=(MY_USERNAME
ONION_ONLY
ADMIN_USERNAME)
function logging_on_mumble {
echo -n ''
}
function logging_off_mumble {
echo -n ''
}
function install_interactive_mumble {
echo -n ''
APP_INSTALLED=1

View File

@ -49,6 +49,14 @@ nextcloud_variables=(ONION_ONLY
DDNS_PROVIDER
MY_USERNAME)
function logging_on_nextcloud {
echo -n ''
}
function logging_off_nextcloud {
echo -n ''
}
function remove_user_nextcloud {
remove_username="$1"

View File

@ -49,6 +49,13 @@ pelican_variables=(MY_USERNAME
PELICAN_DOMAIN_NAME
PELICAN_BLOG_CODE)
function logging_on_pelican {
echo -n ''
}
function logging_off_pelican {
echo -n ''
}
function install_pelican_website {
if [[ $ONION_ONLY != 'no' ]]; then

View File

@ -54,6 +54,14 @@ pihole_variables=(ONION_ONLY
PIHOLE_DNS1
PIHOLE_DNS2)
function logging_on_pihole {
echo -n ''
}
function logging_off_pihole {
echo -n ''
}
function pihole_copy_files {
if [ ! -d /etc/.pihole ]; then
mkdir /etc/.pihole

View File

@ -55,6 +55,14 @@ postactiv_variables=(ONION_ONLY
POSTACTIV_EXPIRE_MONTHS
POSTACTIV_TITLE)
function logging_on_postactiv {
echo -n ''
}
function logging_off_postactiv {
echo -n ''
}
function postactiv_customise_logo {
domain_name=$1

View File

@ -48,6 +48,14 @@ xmpp_variables=(ONION_ONLY
DEFAULT_DOMAIN_NAME
XMPP_DOMAIN_CODE)
function logging_on_profanity {
echo -n ''
}
function logging_off_profanity {
echo -n ''
}
function remove_user_profanity {
remove_username="$1"
}

View File

@ -50,6 +50,14 @@ radicale_variables=(ONION_ONLY
RADICALE_PASSWORD
DEFAULT_DOMAIN_NAME)
function logging_on_radicale {
echo -n ''
}
function logging_off_radicale {
echo -n ''
}
function remove_user_radicale {
remove_username="$1"

View File

@ -49,6 +49,14 @@ riot_variables=(MY_USERNAME
ONION_ONLY
DDNS_PROVIDER)
function logging_on_riot {
echo -n ''
}
function logging_off_riot {
echo -n ''
}
function remove_user_riot {
echo -n ''
}

View File

@ -53,6 +53,14 @@ rss_variables=(RSS_READER_REPO
USB_MOUNT
MY_USERNAME)
function logging_on_rss {
echo -n ''
}
function logging_off_rss {
echo -n ''
}
function remove_user_rss {
remove_username="$1"
}

View File

@ -43,6 +43,14 @@ scuttlebot_variables=(MY_USERNAME
DEFAULT_DOMAIN_NAME
SYSTEM_TYPE)
function logging_on_scuttlebot {
echo -n ''
}
function logging_off_scuttlebot {
echo -n ''
}
function scuttlebot_create_invite {
invite_string=$(su -c "sbot invite.create 1" - scuttlebot | sed 's/"//g')

View File

@ -48,6 +48,14 @@ searx_variables=(SEARX_LOGIN_TEXT
SEARX_BACKGROUND_IMAGE_URL
SYSTEM_TYPE)
function logging_on_searx {
echo -n ''
}
function logging_off_searx {
echo -n ''
}
function searx_set_default_background {
if [ -f ~/freedombone/img/backgrounds/searx.jpg ]; then
cp ~/freedombone/img/backgrounds/searx.jpg /etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg

View File

@ -50,6 +50,14 @@ sip_variables=(ONION_ONLY
TURN_TLS_PORT
TURN_NONCE)
function logging_on_sip {
echo -n ''
}
function logging_off_sip {
echo -n ''
}
function remove_user_sip {
remove_username="$1"
${PROJECT_NAME}-rmsipuser ${remove_username}

View File

@ -51,6 +51,14 @@ syncthing_variables=(SYNCTHING_ID
SYNCTHING_SHARED_DATA
USB_MOUNT)
function logging_on_syncthing {
echo -n ''
}
function logging_off_syncthing {
echo -n ''
}
function syncthing_create_ids_file {
if [ ! -f ~/.syncthing-server-id ]; then
return

View File

@ -56,6 +56,14 @@ tahoelafs_variables=(ONION_ONLY
TAHOELAFS_SHARES_HAPPY
TAHOELAFS_SHARES_TOTAL)
function logging_on_tahoelafs {
echo -n ''
}
function logging_off_tahoelafs {
echo -n ''
}
function add_user_tahoelafs {
if [[ $(app_is_installed tahoelafs) == "0" ]]; then
echo '0'

View File

@ -60,6 +60,14 @@ tox_variables=(SYSTEM_TYPE
TOX_PORT
TOX_NODES)
function logging_on_tox {
echo -n ''
}
function logging_off_tox {
echo -n ''
}
function remove_user_tox {
remove_username="$1"

View File

@ -59,6 +59,14 @@ turtl_variables=(ONION_ONLY
MY_EMAIL_ADDRESS
MY_USERNAME)
function logging_on_turtl {
echo -n ''
}
function logging_off_turtl {
echo -n ''
}
function change_password_turtl {
change_username="$1"
new_user_password="$2"

View File

@ -39,6 +39,14 @@ VIM_MUTT_EDITOR='vim \"+set nonumber\" \"+set insertmode\" \"+set spell\" +/^$/
vim_variables=(MY_USERNAME
VIM_MUTT_EDITOR)
function logging_on_vim {
echo -n ''
}
function logging_off_vim {
echo -n ''
}
function reconfigure_vim {
echo -n ''
}

View File

@ -35,6 +35,14 @@ SHOW_ON_ABOUT=0
vpn_variables=()
function logging_on_vpn {
echo -n ''
}
function logging_off_vpn {
echo -n ''
}
function install_interactive_vpn {
echo -n ''
APP_INSTALLED=1

View File

@ -59,6 +59,14 @@ xmpp_variables=(ONION_ONLY
DEFAULT_DOMAIN_NAME
XMPP_DOMAIN_CODE)
function logging_on_xmpp {
echo -n ''
}
function logging_off_xmpp {
echo -n ''
}
function xmpp_add_onion_address {
domain_name="$1"
onion_address="$2"

View File

@ -59,6 +59,14 @@ zeronet_variables=(TRACKER_PORT
ZERONET_DEFAULT_FORUM_TAGLINE
ZERONET_DEFAULT_MAIL_TAGLINE)
function logging_on_zeronet {
echo -n ''
}
function logging_off_zeronet {
echo -n ''
}
function install_interactive_zeronet {
echo -n ''
APP_INSTALLED=1