Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # output in the console after running:
- # sudo sh install-site.sh alaveteli alaveteli-usr alaveteli.myfoia.org >> install-sh.log
- # * see install-sh.log here: https://pastebin.com/V2kM7Ycr
- # on Ubuntu 18.04
- ubuntu@vps-xxxx:~$ pwd
- /home/ubuntu
- ubuntu@vps-xxxx:~$ mkdir ISLI
- ubuntu@vps-xxxx:~$ cd ISLI/
- ubuntu@vps-xxxx:~/ISLI$ curl -O https://raw.githubusercontent.com/mysociety/commonlib/master/bin/install-site.sh
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 21663 100 21663 0 0 100k 0 --:--:-- --:--:-- --:--:-- 100k
- ubuntu@vps-xxxx:~/ISLI$ sudo sh install-site.sh alaveteli alaveteli-usr alaveteli.myfoia.org >> install.log
- Cloning into '/var/www/alaveteli.myfoia.org/alaveteli'...
- remote: Enumerating objects: 172576, done.
- remote: Counting objects: 100% (5613/5613), done.
- remote: Compressing objects: 100% (2273/2273), done.
- remote: Total 172576 (delta 3177), reused 4900 (delta 2844), pack-reused 166963
- Receiving objects: 100% (172576/172576), 130.74 MiB | 12.79 MiB/s, done.
- Resolving deltas: 100% (117288/117288), done.
- Submodule 'commonlib' (git://git.mysociety.org/commonlib) registered for path 'commonlib'
- Cloning into '/var/www/alaveteli.myfoia.org/alaveteli/commonlib'...
- remote: Counting objects: 7860, done.
- remote: Compressing objects: 100% (4557/4557), done.
- remote: Total 7860 (delta 5063), reused 4983 (delta 3197)
- Receiving objects: 100% (7860/7860), 2.08 MiB | 8.96 MiB/s, done.
- Resolving deltas: 100% (5063/5063), done.
- Warning: apt-key output should not be parsed (stdout is not a terminal)
- postfix/postfix-script: refreshing the Postfix mail system
- Extract templates from packages: 100%
- + '[' 5 -ne 5 ']'
- + UNIX_USER=alaveteli-usr
- + HOST=alaveteli.myfoia.org
- + DIRECTORY=/var/www/alaveteli.myfoia.org
- + RUBY_VERSION=2.5.8
- + USE_RBENV=true
- + DB_NAME=alaveteli
- ++ dig +short alaveteli.myfoia.org
- + IP_ADDRESS_FOR_HOST=135.125.190.31
- + '[' x = x135.125.190.31 ']'
- + id alaveteli-usr
- ++ whoami
- + '[' alaveteli-usr '!=' alaveteli-usr ']'
- + REPOSITORY=/var/www/alaveteli.myfoia.org/alaveteli
- + LINK_DESTINATION=/home/alaveteli-usr/alaveteli
- + ln -sfn /var/www/alaveteli.myfoia.org/alaveteli /home/alaveteli-usr/alaveteli
- + cd /var/www/alaveteli.myfoia.org/alaveteli
- + BASHRC=/home/alaveteli-usr/.bashrc
- + BASHRC_GEM_COMMENT='Set up local gem directory for Alaveteli'
- + BASHRC_START='# START Set up local gem directory for Alaveteli'
- + BASHRC_END='# END Set up local gem directory for Alaveteli'
- + sed -ibackup '/# START Set up local gem directory for Alaveteli/,/# END Set up local gem directory for Alaveteli/d' /home/alaveteli-usr/.bashrc
- ++ mktemp /home/alaveteli-usr/.bashrc.XXXXXXX
- + TMP_BASHRC=/home/alaveteli-usr/.bashrc.PRGdxKb
- + '[' true = true ']'
- + RBENV=/home/alaveteli-usr/.rbenv
- + '[' -d /home/alaveteli-usr/.rbenv ']'
- + echo 'Install rbenv & ruby-build'
- + git clone https://github.com/rbenv/rbenv.git /home/alaveteli-usr/.rbenv
- Cloning into '/home/alaveteli-usr/.rbenv'...
- remote: Enumerating objects: 2946, done.
- remote: Counting objects: 100% (50/50), done.
- remote: Compressing objects: 100% (39/39), done.
- remote: Total 2946 (delta 22), reused 22 (delta 11), pack-reused 2896
- Receiving objects: 100% (2946/2946), 589.89 KiB | 6.48 MiB/s, done.
- Resolving deltas: 100% (1831/1831), done.
- + cd /home/alaveteli-usr/.rbenv
- + src/configure
- + make -C src
- + mkdir -p /home/alaveteli-usr/.rbenv/plugins
- + git clone https://github.com/rbenv/ruby-build.git /home/alaveteli-usr/.rbenv/plugins/ruby-build
- Cloning into '/home/alaveteli-usr/.rbenv/plugins/ruby-build'...
- remote: Enumerating objects: 11732, done.
- remote: Counting objects: 100% (425/425), done.
- remote: Compressing objects: 100% (149/149), done.
- remote: Total 11732 (delta 275), reused 369 (delta 246), pack-reused 11307
- Receiving objects: 100% (11732/11732), 2.47 MiB | 1.24 MiB/s, done.
- Resolving deltas: 100% (7742/7742), done.
- + cd /var/www/alaveteli.myfoia.org/alaveteli
- + cat
- + cat /home/alaveteli-usr/.bashrc
- + mv /home/alaveteli-usr/.bashrc.PRGdxKb /home/alaveteli-usr/.bashrc
- + source /home/alaveteli-usr/.bashrc
- ++ export PATH=/home/alaveteli-usr/.rbenv/bin:/home/alaveteli-usr/.gem/ruby/2.5.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
- ++ PATH=/home/alaveteli-usr/.rbenv/bin:/home/alaveteli-usr/.gem/ruby/2.5.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
- +++ rbenv init -
- ++ eval 'export PATH="/home/alaveteli-usr/.rbenv/shims:${PATH}"
- export RBENV_SHELL=bash
- source '\''/home/alaveteli-usr/.rbenv/libexec/../completions/rbenv.bash'\''
- command rbenv rehash 2>/dev/null
- rbenv() {
- local command
- command="${1:-}"
- if [ "$#" -gt 0 ]; then
- shift
- fi
- case "$command" in
- rehash|shell)
- eval "$(rbenv "sh-$command" "$@")";;
- *)
- command rbenv "$command" "$@";;
- esac
- }'
- +++ export PATH=/home/alaveteli-usr/.rbenv/shims:/home/alaveteli-usr/.rbenv/bin:/home/alaveteli-usr/.gem/ruby/2.5.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
- +++ PATH=/home/alaveteli-usr/.rbenv/shims:/home/alaveteli-usr/.rbenv/bin:/home/alaveteli-usr/.gem/ruby/2.5.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
- +++ export RBENV_SHELL=bash
- +++ RBENV_SHELL=bash
- +++ source /home/alaveteli-usr/.rbenv/libexec/../completions/rbenv.bash
- ++++ complete -F _rbenv rbenv
- +++ command rbenv rehash
- ++ case $- in
- ++ return
- + '[' true = true ']'
- + echo 'Installing Ruby 2.5.8'
- + rbenv install -s 2.5.8
- + local command
- + command=install
- + '[' 3 -gt 0 ']'
- + shift
- + case "$command" in
- + command rbenv install -s 2.5.8
- + rbenv install -s 2.5.8
- Downloading ruby-2.5.8.tar.bz2...
- -> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.8.tar.bz2
- Installing ruby-2.5.8...
- WARNING: ruby-2.5.8 is past its end of life and is now unsupported.
- It no longer receives bug fixes or critical security updates.
- Installed ruby-2.5.8 to /home/alaveteli-usr/.rbenv/versions/2.5.8
- + rbenv global 2.5.8
- + local command
- + command=global
- + '[' 2 -gt 0 ']'
- + shift
- + case "$command" in
- + command rbenv global 2.5.8
- + rbenv global 2.5.8
- + gem install bundler
- + echo 'gem: --no-ri --no-rdoc'
- ++ random_alphanumerics 32
- ++ head -c32
- ++ tr -dc A-Za-z0-9
- + RANDOM_EMAIL_SECRET=xxxx
- ++ random_alphanumerics 10
- ++ head -c10
- ++ tr -dc A-Za-z0-9
- + RANDOM_EMERGENCY_PASSWORD=xxxx
- ++ random_alphanumerics 100
- ++ head -c100
- ++ tr -dc A-Za-z0-9
- + RANDOM_COOKIE_SECRET=xxxx
- + '[' -f config/general.yml ']'
- + sed -r -e 's,^( *DOMAIN:).*,\1 '\''alaveteli.myfoia.org'\'',' -e 's,^( *FORCE_SSL:).*,\1 false,' -e 's,^( *TIME_ZONE:).*,\1 '\''Europe/London'\'',' -e 's,^( *BLOG_FEED:).*,\1 '\'''\'',' -e 's,^( *TWITTER_USERNAME:).*,\1 '\'''\'',' -e 's,^( *INCLUDE_DEFAULT_LOCALE_IN_URLS:).*,\1 false,' -e 's,^( *INCOMING_EMAIL_DOMAIN:).*,\1 '\''alaveteli.myfoia.org'\'',' -e 's,^( *INCOMING_EMAIL_PREFIX:).*,\1 '\''foi+'\'',' -e 's,^( *INCOMING_EMAIL_SECRET:).*,\1 '\''Zchklb19m2RPo2X13j6NLn9nEzIrNlNc'\'',' -e 's,^( *ADMIN_USERNAME:).*,\1 '\''emergency'\'',' -e 's,^( *ADMIN_PASSWORD:).*,\1 '\''aJvL7IUbNG'\'',' -e 's,^( *CONTACT_EMAIL:).*,\1 '\''postmaster@alaveteli.myfoia.org'\'',' -e 's,^( *TRACK_SENDER_EMAIL:).*,\1 '\''postmaster@alaveteli.myfoia.org'\'',' -e 's,^( *SECRET_KEY_BASE:).*,\1 '\''xxxx'\'',' -e 's,^( *FORWARD_NONBOUNCE_RESPONSES_TO:).*,\1 '\''user-support@alaveteli.myfoia.org'\'',' -e 's,^( *HTML_TO_PDF_COMMAND:).*,\1 '\''/usr/local/bin/wkhtmltopdf'\'',' -e 's,^( *EXCEPTION_NOTIFICATIONS_FROM:).*,\1 '\''do-not-reply-to-this-address@alaveteli.myfoia.org'\'',' -e '/EXCEPTION_NOTIFICATIONS_TO:/,/^$/c EXCEPTION_NOTIFICATIONS_TO:\n - team@alaveteli.myfoia.org\n' -e 's,^( *MTA_LOG_PATH:).*,\1 '\''/var/log/mail/mail.log-*'\'',' -e 's,^( *MTA_LOG_TYPE:).*,\1 '\''postfix'\'',' -e 's,^( *DONATION_URL:).*,\1 null,' -e 's,^( *THEME_BRANCH:).*,\1 '\''develop'\'',' -e 's,^( *USE_MAILCATCHER_IN_DEVELOPMENT:).*,\1 false,' -e 's,^( *BUNDLE_PATH:).*,\1 /home/alaveteli-usr/bundle/,' -e 's,^( *POP_MAILER_USER_NAME:).*,\1 '\''alaveteli-incoming'\'',' -e 's,^( *POP_MAILER_PASSWORD:).*,\1 '\''alaveteli-incoming'\'',' -e 's,^( *POP_MAILER_PORT:).*,\1 '\''110'\'',' -e 's,^( *POP_MAILER_ENABLE_SSL:).*,\1 false,' config/general.yml-example
- + sed -r -e 's,^( *database: *)foi_(.*),\1alaveteli_\2,' -e 's,^( *username: *).*,\1alaveteli-usr,' -e 's,^( *password: *).*,\1null,' -e 's,^( *host: *).*,\1/var/run/postgresql/,' -e 's,# constraint_disabling: false, constraint_disabling: false,' config/database.yml-example
- + for SUFFIX in production test development
- + REAL_DB_NAME=alaveteli_production
- + echo Creating the database alaveteli_production
- + egrep '^ *alaveteli_production *\|'
- + psql -l
- + createdb -T template_utf8 --owner alaveteli-usr alaveteli_production
- + for SUFFIX in production test development
- + REAL_DB_NAME=alaveteli_test
- + echo Creating the database alaveteli_test
- + egrep '^ *alaveteli_test *\|'
- + psql -l
- + createdb -T template_utf8 --owner alaveteli-usr alaveteli_test
- + for SUFFIX in production test development
- + REAL_DB_NAME=alaveteli_development
- + echo Creating the database alaveteli_development
- + egrep '^ *alaveteli_development *\|'
- + psql -l
- + createdb -T template_utf8 --owner alaveteli-usr alaveteli_development
- + echo Running rails-post-deploy
- + script/rails-post-deploy
- [DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path '/home/alaveteli-usr/bundle/'`, and stop using this flag
- Cloning into '/var/www/alaveteli.myfoia.org/alaveteli/lib/themes/alavetelitheme'...
- remote: Enumerating objects: 1782, done.
- remote: Counting objects: 100% (25/25), done.
- remote: Compressing objects: 100% (15/15), done.
- remote: Total 1782 (delta 8), reused 22 (delta 8), pack-reused 1757
- Receiving objects: 100% (1782/1782), 631.65 KiB | 344.00 KiB/s, done.
- Resolving deltas: 100% (655/655), done.
- Note: checking out 'origin/develop'.
- You are in 'detached HEAD' state. You can look around, make experimental
- changes and commit them, and you can discard any commits you make in this
- state without impacting any branches by performing another checkout.
- If you want to create a new branch to retain commits you create, you may
- do so (now or later) by using -b with the checkout command again. Example:
- git checkout -b <new-branch-name>
- HEAD is now at 9280b94 Merge branch 'master' into develop
- + LOADED_INDICATOR=/home/alaveteli-usr/.alaveteli-sample-data-loaded
- + '[' '!' -f /home/alaveteli-usr/.alaveteli-sample-data-loaded ']'
- + echo Running load-sample-data
- + bundle exec script/load-sample-data
- + echo Running destroy-and-rebuild-xapian-index
- + script/destroy-and-rebuild-xapian-index
- + touch /home/alaveteli-usr/.alaveteli-sample-data-loaded
- alaveteli-alert-tracks.service is not a native service, redirecting to systemd-sysv-install.
- Executing: /lib/systemd/systemd-sysv-install enable alaveteli-alert-tracks
- alaveteli-send-notifications.service is not a native service, redirecting to systemd-sysv-install.
- Executing: /lib/systemd/systemd-sysv-install enable alaveteli-send-notifications
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement