#!/bin/bash # # .---. . . # | | | # |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-. # | | (.-' (.-' ( | ( )| | | | )( )| | (.-' # ' ' --' --' -' - -' ' ' -' -' -' ' - --' # # Freedom in the Cloud # # Ghost blog # # License # ======= # # Copyright (C) 2016 Bob Mottram # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . VARIANTS="full full-vim writer" IN_DEFAULT_INSTALL=0 SHOW_ON_ABOUT=1 GHOST_DOMAIN_NAME= GHOST_CODE= GHOST_ONION_PORT=8104 GHOST_VERSION='0.11.3' GHOST_PORT=2368 ghost_variables=(GHOST_VERSION GHOST_DOMAIN_NAME GHOST_CODE GHOST_ADMIN_PASSWORD ONION_ONLY DDNS_PROVIDER MY_USERNAME) function ghost_replace_proprietary_services { replace_file=$1 sed -i 's|Twitter Profile|GNU Social Profile|g' $replace_file sed -i 's|Twitter Username|GNU Social Username|g' $replace_file sed -i 's|twitter.com|quitter.se|g' $replace_file sed -i 's|Facebook Page|Hubzilla Channel|g' $replace_file sed -i 's|www.facebook.com/username|hubzilladomain/username|g' $replace_file sed -i 's|www.facebook.com/ghost|hubzilladomain/username|g' $replace_file sed -i 's|www.facebook.com/testuser|hubzilladomain/username|g' $replace_file sed -i 's|www.facebook.com/testing|hubzilladomain/username|g' $replace_file sed -i 's|www.facebook.com/test|hubzilladomain/username|g' $replace_file sed -i 's|www.facebook.com/yourUsername|hubzilladomain/username|g' $replace_file sed -i 's|www.facebook.com/yourPage|hubzilladomain/username|g' $replace_file sed -i 's|Facebook Username|Hubzilla Channel|g' $replace_file sed -i 's|www.facebook.com|hubzilladomain|g' $replace_file sed -i 's|facebook value|hubzilla value|g' $replace_file sed -i '/