diff options
author | redmatrix <git@macgirvin.com> | 2016-02-21 18:15:40 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-02-21 18:15:40 -0800 |
commit | f9b092c6194fe2a2812cb0ae687e19b1f5680c98 (patch) | |
tree | 140d84964e97779f1eabf1657161d2503ac561e4 /.homeinstall/hubzilla-setup.sh | |
parent | edc7c0837b3b0a00fb4b4b06c2c82556fee90d09 (diff) | |
parent | f535d438b26795abec9675c22ba8083855e9a15e (diff) | |
download | volse-hubzilla-f9b092c6194fe2a2812cb0ae687e19b1f5680c98.tar.gz volse-hubzilla-f9b092c6194fe2a2812cb0ae687e19b1f5680c98.tar.bz2 volse-hubzilla-f9b092c6194fe2a2812cb0ae687e19b1f5680c98.zip |
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to '.homeinstall/hubzilla-setup.sh')
-rwxr-xr-x | .homeinstall/hubzilla-setup.sh | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/.homeinstall/hubzilla-setup.sh b/.homeinstall/hubzilla-setup.sh index 1a584b49c..670844b83 100755 --- a/.homeinstall/hubzilla-setup.sh +++ b/.homeinstall/hubzilla-setup.sh @@ -5,7 +5,7 @@ # # This file automates the installation of hubzilla under Debian Linux # -# 1) Edit the file "hubzilla-config.txt" +# 1) Copy the file "hubzilla-config.txt.template" to "hubzilla-config.txt" # Follow the instuctions there # # 2) Switch to user "root" by typing "su -" @@ -92,12 +92,12 @@ # Credits # ------- # -# The srcipt is based on Thomas Willinghams script "debian-setup.sh" +# The script is based on Thomas Willinghams script "debian-setup.sh" # which he used to install the red#matrix. # # The script uses another script from https://github.com/lukas2511/letsencrypt.sh # -# The documentation of bash is here +# The documentation for bash is here # https://www.gnu.org/software/bash/manual/bash.html # function check_sanity { @@ -120,6 +120,15 @@ function check_sanity { function check_config { print_info "config check..." + # Check for required parameters + if [ -z "$db_pass" ] + then + die "db_pass not set in $configfile" + fi + if [ -z "$le_domain" ] + then + die "le_domain not set in $configfile" + fi # backup is important and should be checked if [ -n "$backup_device_name" ] then @@ -225,6 +234,11 @@ function install_curl { nocheck_install "curl" } +function install_sendmail { + print_info "installing sendmail..." + nocheck_install "sendmail" +} + function install_php { # openssl and mbstring are included in libapache2-mod-php5 # to_to: php5-suhosin @@ -809,6 +823,7 @@ check_sanity # Read config file edited by user configfile=hubzilla-config.txt source $configfile + selfhostdir=/etc/selfhost selfhostscript=selfhost-updater.sh hubzilladaily=hubzilla-daily.sh @@ -823,6 +838,7 @@ sslconf=/etc/apache2/sites-available/default-ssl.conf check_config update_upgrade install_curl +install_sendmail install_apache install_php install_mysql |