Skip to content

Instantly share code, notes, and snippets.

@prichey
Created January 18, 2018 06:21
Show Gist options
  • Save prichey/e1ce3d3a2e187e6ff6d798d4d0a4ea57 to your computer and use it in GitHub Desktop.
Save prichey/e1ce3d3a2e187e6ff6d798d4d0a4ea57 to your computer and use it in GitHub Desktop.
root@prichey:~# sudo su -
root@prichey:~# apt-get install dokku=0.10.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-63 linux-headers-4.4.0-63-generic linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-70
linux-headers-4.4.0-70-generic linux-headers-4.4.0-71 linux-headers-4.4.0-71-generic linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic
linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic linux-headers-4.4.0-78 linux-headers-4.4.0-78-generic linux-headers-4.4.0-79
linux-headers-4.4.0-79-generic linux-headers-4.4.0-81 linux-headers-4.4.0-81-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic
linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-headers-4.4.0-89 linux-headers-4.4.0-89-generic linux-headers-4.4.0-91
linux-headers-4.4.0-91-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic
linux-headers-4.4.0-96 linux-headers-4.4.0-96-generic linux-headers-4.4.0-97 linux-headers-4.4.0-97-generic linux-image-4.4.0-63-generic
linux-image-4.4.0-66-generic linux-image-4.4.0-70-generic linux-image-4.4.0-71-generic linux-image-4.4.0-72-generic linux-image-4.4.0-75-generic
linux-image-4.4.0-78-generic linux-image-4.4.0-79-generic linux-image-4.4.0-81-generic linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic
linux-image-4.4.0-89-generic linux-image-4.4.0-91-generic linux-image-4.4.0-92-generic linux-image-4.4.0-93-generic linux-image-4.4.0-96-generic
linux-image-4.4.0-97-generic linux-image-extra-4.4.0-63-generic linux-image-extra-4.4.0-66-generic linux-image-extra-4.4.0-70-generic
linux-image-extra-4.4.0-71-generic linux-image-extra-4.4.0-72-generic linux-image-extra-4.4.0-75-generic linux-image-extra-4.4.0-78-generic
linux-image-extra-4.4.0-79-generic linux-image-extra-4.4.0-81-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic
linux-image-extra-4.4.0-89-generic linux-image-extra-4.4.0-91-generic linux-image-extra-4.4.0-92-generic linux-image-extra-4.4.0-93-generic
linux-image-extra-4.4.0-96-generic linux-image-extra-4.4.0-97-generic snap-confine
Use 'apt autoremove' to remove them.
The following packages will be DOWNGRADED:
dokku
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 25 not upgraded.
Need to get 0 B/1,404 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
dpkg: warning: downgrading dokku from 0.11.3 to 0.10.5
(Reading database ... 665182 files and directories currently installed.)
Preparing to unpack .../dokku_0.10.5_amd64.deb ...
Processing upgrade
-----> Cleaning up...
Unpacking dokku (0.10.5) over (0.11.3) ...
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Processing triggers for man-db (2.7.5-1) ...
Setting up dokku (0.10.5) ...
Purging old database entries in /usr/share/man...
Processing manual pages under /usr/share/man...
Purging old database entries in /usr/share/man/sl...
Processing manual pages under /usr/share/man/sl...
Purging old database entries in /usr/share/man/pl...
Processing manual pages under /usr/share/man/pl...
Purging old database entries in /usr/share/man/fr...
Processing manual pages under /usr/share/man/fr...
Purging old database entries in /usr/share/man/tr...
Processing manual pages under /usr/share/man/tr...
Purging old database entries in /usr/share/man/pt...
Processing manual pages under /usr/share/man/pt...
Purging old database entries in /usr/share/man/zh_CN...
Processing manual pages under /usr/share/man/zh_CN...
Purging old database entries in /usr/share/man/ko...
Processing manual pages under /usr/share/man/ko...
Purging old database entries in /usr/share/man/ja...
Processing manual pages under /usr/share/man/ja...
Purging old database entries in /usr/share/man/ru...
Processing manual pages under /usr/share/man/ru...
Purging old database entries in /usr/share/man/pt_BR...
Processing manual pages under /usr/share/man/pt_BR...
Purging old database entries in /usr/share/man/cs...
Processing manual pages under /usr/share/man/cs...
Purging old database entries in /usr/share/man/id...
Processing manual pages under /usr/share/man/id...
Purging old database entries in /usr/share/man/it...
Processing manual pages under /usr/share/man/it...
Purging old database entries in /usr/share/man/de...
Processing manual pages under /usr/share/man/de...
Purging old database entries in /usr/share/man/nl...
Processing manual pages under /usr/share/man/nl...
Purging old database entries in /usr/share/man/sv...
Processing manual pages under /usr/share/man/sv...
Purging old database entries in /usr/share/man/da...
Processing manual pages under /usr/share/man/da...
Purging old database entries in /usr/share/man/zh_TW...
Processing manual pages under /usr/share/man/zh_TW...
Purging old database entries in /usr/share/man/fi...
Processing manual pages under /usr/share/man/fi...
Purging old database entries in /usr/share/man/es...
Processing manual pages under /usr/share/man/es...
Purging old database entries in /usr/share/man/hu...
Processing manual pages under /usr/share/man/hu...
Processing manual pages under /usr/local/man...
0 man subdirectories contained newer manual pages.
0 manual pages were added.
0 stray cats were added.
0 old database entries were purged.
docker:x:999:dokku
Setting up storage directories
Setting up plugin directories
Migrating old plugins
Enabling all core plugins
Ensure proper sshcommand path
Install all core plugins
-----> Migrating zero downtime env variables to 0.5.x. The following variables have been deprecated
=====> DOKKU_SKIP_ALL_CHECKS DOKKU_SKIP_DEFAULT_CHECKS
=====> Please use dokku checks:[disable|enable] <app> to control zero downtime functionality
=====> Migration complete
=====>
-----> Migrating zero downtime env variables to 0.6.x. The following variables will be migrated
=====> DOKKU_CHECKS_ENABLED -> DOKKU_CHECKS_SKIPPED
=====> Migration complete
=====>
Adding user dokku to group adm
[ ok ] Starting nginx (via systemctl): nginx.service.
root@prichey:~# dokku config:unset appname --no-restart
-----> Unsetting appname
Reinitializing monit daemon
root@prichey:~# dokku config appname
=====> appname config vars
:
root@prichey:~# apt-get install dokku
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-63 linux-headers-4.4.0-63-generic linux-headers-4.4.0-66
linux-headers-4.4.0-66-generic linux-headers-4.4.0-70
linux-headers-4.4.0-70-generic linux-headers-4.4.0-71
linux-headers-4.4.0-71-generic linux-headers-4.4.0-72
linux-headers-4.4.0-72-generic linux-headers-4.4.0-75
linux-headers-4.4.0-75-generic linux-headers-4.4.0-78
linux-headers-4.4.0-78-generic linux-headers-4.4.0-79
linux-headers-4.4.0-79-generic linux-headers-4.4.0-81
linux-headers-4.4.0-81-generic linux-headers-4.4.0-83
linux-headers-4.4.0-83-generic linux-headers-4.4.0-87
linux-headers-4.4.0-87-generic linux-headers-4.4.0-89
linux-headers-4.4.0-89-generic linux-headers-4.4.0-91
linux-headers-4.4.0-91-generic linux-headers-4.4.0-92
linux-headers-4.4.0-92-generic linux-headers-4.4.0-93
linux-headers-4.4.0-93-generic linux-headers-4.4.0-96
linux-headers-4.4.0-96-generic linux-headers-4.4.0-97
linux-headers-4.4.0-97-generic linux-image-4.4.0-63-generic
linux-image-4.4.0-66-generic linux-image-4.4.0-70-generic
linux-image-4.4.0-71-generic linux-image-4.4.0-72-generic
linux-image-4.4.0-75-generic linux-image-4.4.0-78-generic
linux-image-4.4.0-79-generic linux-image-4.4.0-81-generic
linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic
linux-image-4.4.0-89-generic linux-image-4.4.0-91-generic
linux-image-4.4.0-92-generic linux-image-4.4.0-93-generic
linux-image-4.4.0-96-generic linux-image-4.4.0-97-generic
linux-image-extra-4.4.0-63-generic linux-image-extra-4.4.0-66-generic
linux-image-extra-4.4.0-70-generic linux-image-extra-4.4.0-71-generic
linux-image-extra-4.4.0-72-generic linux-image-extra-4.4.0-75-generic
linux-image-extra-4.4.0-78-generic linux-image-extra-4.4.0-79-generic
linux-image-extra-4.4.0-81-generic linux-image-extra-4.4.0-83-generic
linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-89-generic
linux-image-extra-4.4.0-91-generic linux-image-extra-4.4.0-92-generic
linux-image-extra-4.4.0-93-generic linux-image-extra-4.4.0-96-generic
linux-image-extra-4.4.0-97-generic snap-confine
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
dokku
Preconfiguring packages ...
1 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
Need to get 0 B/7,481 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 665141 files and directories currently installed.)
Preparing to unpack .../dokku_0.11.3_amd64.deb ...
+ readonly DOKKU_ROOT=/home/dokku
+ DOKKU_ROOT=/home/dokku
+ readonly DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ main upgrade 0.11.3
+ grep -- --purge
+ grep dpkg
+ ps_backtrace 19557
+ echo 'Processing upgrade'
Processing upgrade
+ dokku cleanup
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ export DOKKU_API_VERSION=1
+ DOKKU_API_VERSION=1
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10
+ DOKKU_NOT_IMPLEMENTED_EXIT=10
+ export DOKKU_VALID_EXIT=0
+ DOKKU_VALID_EXIT=0
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ export DOKKU_CONTAINER_LABEL=dokku
+ DOKKU_CONTAINER_LABEL=dokku
+ export DOKKU_GLOBAL_RUN_ARGS=--label=dokku
+ DOKKU_GLOBAL_RUN_ARGS=--label=dokku
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args cleanup
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ for arg in '"$@"'
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ next_index=2
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ cleanup =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ root != \d\o\k\k\u ]]
+ [[ ! cleanup =~ plugin:* ]]
+ [[ ! cleanup == \s\s\h\-\k\e\y\s\:\a\d\d ]]
++ id -un
+ export SSH_USER=root
+ SSH_USER=root
+ sudo -u dokku -E -H /usr/bin/dokku cleanup
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ export DOKKU_API_VERSION=1
+ DOKKU_API_VERSION=1
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10
+ DOKKU_NOT_IMPLEMENTED_EXIT=10
+ export DOKKU_VALID_EXIT=0
+ DOKKU_VALID_EXIT=0
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ export DOKKU_CONTAINER_LABEL=dokku
+ DOKKU_CONTAINER_LABEL=dokku
+ export DOKKU_GLOBAL_RUN_ARGS=--label=dokku
+ DOKKU_GLOBAL_RUN_ARGS=--label=dokku
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args cleanup
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ for arg in '"$@"'
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ next_index=2
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ cleanup =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ cleanup =~ ^plugin:.* ]]
+ [[ cleanup == \s\s\h\-\k\e\y\s\:\a\d\d ]]
+ [[ -n '' ]]
+ dokku_auth cleanup
+ declare 'desc=calls user-auth plugin trigger'
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default cleanup
+ cmd-export version
+ declare 'desc=Exports a function as a command'
+ declare fn=version as=version
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :help
+ CMDS["$ns:${as/#$ns-/}"]=version
+ cmd-export install
+ declare 'desc=Exports a function as a command'
+ declare fn=install as=install
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
+ CMDS["$ns:${as/#$ns-/}"]=install
+ cmd-export uninstall
+ declare 'desc=Exports a function as a command'
+ declare fn=uninstall as=uninstall
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :install
+ CMDS["$ns:${as/#$ns-/}"]=uninstall
+ cmd-export update
+ declare 'desc=Exports a function as a command'
+ declare fn=update as=update
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
+ CMDS["$ns:${as/#$ns-/}"]=update
+ cmd-export list
+ declare 'desc=Exports a function as a command'
+ declare fn=list as=list
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
+ CMDS["$ns:${as/#$ns-/}"]=list
+ cmd-export trigger
+ declare 'desc=Exports a function as a command'
+ declare fn=trigger as=trigger
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
+ CMDS["$ns:${as/#$ns-/}"]=trigger
+ cmd-export enable
+ declare 'desc=Exports a function as a command'
+ declare fn=enable as=enable
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
+ CMDS["$ns:${as/#$ns-/}"]=enable
+ cmd-export disable
+ declare 'desc=Exports a function as a command'
+ declare fn=disable as=disable
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=disable
+ cmd-export _source source
+ declare 'desc=Exports a function as a command'
+ declare fn=_source as=source
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=_source
+ cmd-export-ns config 'Plugin configuration'
+ declare ns=config 'desc=Plugin configuration'
+ eval 'config() {
declare desc="Plugin configuration"
cmd-ns config "$@";
}'
+ cmd-export config
+ declare 'desc=Exports a function as a command'
+ declare fn=config as=config
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=config
+ CMDS["$1"]=config
+ cmd-export config-get
+ declare 'desc=Exports a function as a command'
+ declare fn=config-get as=config-get
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-get
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-get
+ cmd-export config-export
+ declare 'desc=Exports a function as a command'
+ declare fn=config-export as=config-export
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-export
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-export
+ cmd-export config-set
+ declare 'desc=Exports a function as a command'
+ declare fn=config-set as=config-set
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo config:export
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-set
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-set
+ cmd-export init
+ declare 'desc=Exports a function as a command'
+ declare fn=init as=init
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo config:export
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo config:set
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo init
+ CMDS["$ns:${as/#$ns-/}"]=init
+ cmd-ns '' trigger user-auth root default cleanup
+ local ns=
+ shift
+ local cmd=trigger
+ shift
+ local status=0
+ grep '^trigger$'
+ cmd-list ''
+ declare 'desc=Lists available commands'
+ declare ns=
+ sed s/://
+ cmd-list-keys ''
+ declare ns=
+ sort
+ grep '^:'
+ for k in '"${!CMDS[@]}"'
+ echo :disable
+ for k in '"${!CMDS[@]}"'
+ echo :version
+ for k in '"${!CMDS[@]}"'
+ echo :help
+ for k in '"${!CMDS[@]}"'
+ echo :update
+ for k in '"${!CMDS[@]}"'
+ echo config:export
+ for k in '"${!CMDS[@]}"'
+ echo :source
+ for k in '"${!CMDS[@]}"'
+ echo config:get
+ for k in '"${!CMDS[@]}"'
+ echo config
+ for k in '"${!CMDS[@]}"'
+ echo :init
+ for k in '"${!CMDS[@]}"'
+ echo config:set
+ for k in '"${!CMDS[@]}"'
+ echo :config
+ for k in '"${!CMDS[@]}"'
+ echo :trigger
+ for k in '"${!CMDS[@]}"'
+ echo :install
+ for k in '"${!CMDS[@]}"'
+ echo :uninstall
+ for k in '"${!CMDS[@]}"'
+ echo :list
+ for k in '"${!CMDS[@]}"'
+ echo :enable
+ trigger user-auth root default cleanup
+ declare 'desc=Triggers hook in enabled plugins'
+ declare hook=user-auth
+ shift
+ shopt -s nullglob
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/00_dokku-standard
++ config-export 00_dokku-standard
++ declare 'desc=Export plugin configuration'
++ declare plugin=00_dokku-standard
++ toml-export 00_dokku-standard
++ /usr/bin/plugn ::: toml-export 00_dokku-standard
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/00_dokku-standard/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/20_events
++ config-export 20_events
++ declare 'desc=Export plugin configuration'
++ declare plugin=20_events
++ toml-export 20_events
++ /usr/bin/plugn ::: toml-export 20_events
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/20_events/user-auth ]]
+ /var/lib/dokku/plugins/enabled/20_events/user-auth root default cleanup
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/apps
++ config-export apps
++ declare 'desc=Export plugin configuration'
++ declare plugin=apps
++ toml-export apps
++ /usr/bin/plugn ::: toml-export apps
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/apps/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/apt
++ config-export apt
++ declare 'desc=Export plugin configuration'
++ declare plugin=apt
++ toml-export apt
++ /usr/bin/plugn ::: toml-export apt
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/apt/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/build-env
++ config-export build-env
++ declare 'desc=Export plugin configuration'
++ declare plugin=build-env
++ toml-export build-env
++ /usr/bin/plugn ::: toml-export build-env
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/build-env/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/certs
++ config-export certs
++ declare 'desc=Export plugin configuration'
++ declare plugin=certs
++ toml-export certs
++ /usr/bin/plugn ::: toml-export certs
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/certs/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/checks
++ config-export checks
++ declare 'desc=Export plugin configuration'
++ declare plugin=checks
++ toml-export checks
++ /usr/bin/plugn ::: toml-export checks
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/checks/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/common
++ config-export common
++ declare 'desc=Export plugin configuration'
++ declare plugin=common
++ toml-export common
++ /usr/bin/plugn ::: toml-export common
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/common/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/config
++ config-export config
++ declare 'desc=Export plugin configuration'
++ declare plugin=config
++ toml-export config
++ /usr/bin/plugn ::: toml-export config
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/config/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/docker-options
++ config-export docker-options
++ declare 'desc=Export plugin configuration'
++ declare plugin=docker-options
++ toml-export docker-options
++ /usr/bin/plugn ::: toml-export docker-options
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/docker-options/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/domains
++ config-export domains
++ declare 'desc=Export plugin configuration'
++ declare plugin=domains
++ toml-export domains
++ /usr/bin/plugn ::: toml-export domains
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/domains/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/enter
++ config-export enter
++ declare 'desc=Export plugin configuration'
++ declare plugin=enter
++ toml-export enter
++ /usr/bin/plugn ::: toml-export enter
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/enter/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/git
++ config-export git
++ declare 'desc=Export plugin configuration'
++ declare plugin=git
++ toml-export git
++ /usr/bin/plugn ::: toml-export git
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/git/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/letsencrypt
++ config-export letsencrypt
++ declare 'desc=Export plugin configuration'
++ declare plugin=letsencrypt
++ toml-export letsencrypt
++ /usr/bin/plugn ::: toml-export letsencrypt
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/letsencrypt/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/logs
++ config-export logs
++ declare 'desc=Export plugin configuration'
++ declare plugin=logs
++ toml-export logs
++ /usr/bin/plugn ::: toml-export logs
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/logs/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/monit
++ config-export monit
++ declare 'desc=Export plugin configuration'
++ declare plugin=monit
++ toml-export monit
++ /usr/bin/plugn ::: toml-export monit
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/monit/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/named-containers
++ config-export named-containers
++ declare 'desc=Export plugin configuration'
++ declare plugin=named-containers
++ toml-export named-containers
++ /usr/bin/plugn ::: toml-export named-containers
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/named-containers/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/nginx-vhosts
++ config-export nginx-vhosts
++ declare 'desc=Export plugin configuration'
++ declare plugin=nginx-vhosts
++ toml-export nginx-vhosts
++ /usr/bin/plugn ::: toml-export nginx-vhosts
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/nginx-vhosts/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/plugin
++ config-export plugin
++ declare 'desc=Export plugin configuration'
++ declare plugin=plugin
++ toml-export plugin
++ /usr/bin/plugn ::: toml-export plugin
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/plugin/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/proxy
++ config-export proxy
++ declare 'desc=Export plugin configuration'
++ declare plugin=proxy
++ toml-export proxy
++ /usr/bin/plugn ::: toml-export proxy
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/proxy/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/ps
++ config-export ps
++ declare 'desc=Export plugin configuration'
++ declare plugin=ps
++ toml-export ps
++ /usr/bin/plugn ::: toml-export ps
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/ps/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/repo
++ config-export repo
++ declare 'desc=Export plugin configuration'
++ declare plugin=repo
++ toml-export repo
++ /usr/bin/plugn ::: toml-export repo
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/repo/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/shell
++ config-export shell
++ declare 'desc=Export plugin configuration'
++ declare plugin=shell
++ toml-export shell
++ /usr/bin/plugn ::: toml-export shell
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/shell/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/ssh-keys
++ config-export ssh-keys
++ declare 'desc=Export plugin configuration'
++ declare plugin=ssh-keys
++ toml-export ssh-keys
++ /usr/bin/plugn ::: toml-export ssh-keys
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/ssh-keys/user-auth ]]
+ /var/lib/dokku/plugins/enabled/ssh-keys/user-auth root default cleanup
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ cleanup =~ (ssh-keys:add|ssh-keys:remove) ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/storage
++ config-export storage
++ declare 'desc=Export plugin configuration'
++ declare plugin=storage
++ toml-export storage
++ /usr/bin/plugn ::: toml-export storage
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/storage/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/tags
++ config-export tags
++ declare 'desc=Export plugin configuration'
++ declare plugin=tags
++ toml-export tags
++ /usr/bin/plugn ::: toml-export tags
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/tags/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/tar
++ config-export tar
++ declare 'desc=Export plugin configuration'
++ declare plugin=tar
++ toml-export tar
++ /usr/bin/plugn ::: toml-export tar
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/tar/user-auth ]]
+ shopt -u nullglob
+ trigger-gateway user-auth root default cleanup
+ /usr/bin/plugn ::: trigger-gateway user-auth root default cleanup
+ return 0
+ case "$1" in
+ execute_dokku_cmd cleanup
+ declare 'desc=executes dokku sub-commands'
+ local PLUGIN_NAME=cleanup
+ local PLUGIN_CMD=cleanup
+ local implemented=0
+ local script
+ argv=("$@")
+ local argv
+ case "$PLUGIN_NAME" in
+ local PLUGIN_NAME=00_dokku-standard
++ readlink -f /var/lib/dokku/plugins/enabled/00_dokku-standard
+ [[ /var/lib/dokku/core-plugins/available/00_dokku-standard == *core-plugins* ]]
+ [[ cleanup == \c\l\e\a\n\u\p ]]
+ shift 1
+ [[ ! -z '' ]]
+ set -- cleanup
+ [[ -x /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/default ]]
+ [[ -x /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/cleanup ]]
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/cleanup cleanup
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ dokku_cleanup_cmd cleanup
+ declare 'desc=cleans up old deployment cruft'
+ local cmd=cleanup
+ docker_cleanup '' true
+ declare 'desc=cleans up all exited/dead containers and removes all dangling images'
+ declare APP= FORCE_CLEANUP=true
+ local DOKKU_APP_SKIP_CLEANUP
+ [[ true != \t\r\u\e ]]
+ dokku_log_info1 'Cleaning up...'
+ declare 'desc=log info1 formatter'
+ echo '-----> Cleaning up...'
-----> Cleaning up...
++ docker ps -a -f status=exited -f label=dokku -q
+ docker rm
+ true
++ docker ps -a -f status=dead -f label=dokku -q
+ docker rm
+ true
+ implemented=1
+ [[ 1 -eq 0 ]]
+ [[ 1 -eq 0 ]]
+ exit 0
++ docker images -f dangling=true -q
+ [[ -e /usr/share/debconf/confmodule ]]
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/tmp.ci/preinst upgrade 0.10.5
+ docker rmi 3b940496144f 02055e49c64e 375571d87bc0 4f5eda8249ef 1b492bc3cf2e 61805a222189 f8144a5aeb3c b762b9f9f1db afa54a8edb83 88e05769d18a c99ce30f1901
+ [[ -e /usr/share/debconf/confmodule ]]
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ readonly ACTION=configure
+ ACTION=configure
+ readonly VERSION=0.10.5
+ VERSION=0.10.5
+ db_input high dokku/web_config
+ _db_cmd 'INPUT high' dokku/web_config
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'INPUT high dokku/web_config'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ ]*} in
+ return 30
+ true
+ db_go
+ _db_cmd 'GO '
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GO '
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=ok
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ db_get dokku/web_config
+ _db_cmd 'GET dokku/web_config'
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GET dokku/web_config'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=false
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' false = true ']'
+ db_input high dokku/hostname
+ _db_cmd 'INPUT high' dokku/hostname
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'INPUT high dokku/hostname'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ ]*} in
+ return 30
+ true
+ db_input high dokku/vhost_enable
+ _db_cmd 'INPUT high' dokku/vhost_enable
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'INPUT high dokku/vhost_enable'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ ]*} in
+ return 30
+ true
+ '[' configure '!=' reconfigure ']'
+ db_input high dokku/key_file
+ _db_cmd 'INPUT high' dokku/key_file
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'INPUT high dokku/key_file'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ ]*} in
+ return 30
+ true
+ db_go
+ _db_cmd 'GO '
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GO '
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=ok
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ [[ -e /usr/share/debconf/confmodule ]]
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ case "$1" in
+ exit 0
Unpacking dokku (0.11.3) over (0.10.5) ...
+ [[ -e /usr/share/debconf/confmodule ]]
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/dokku.postrm upgrade 0.11.3
+ [[ -e /usr/share/debconf/confmodule ]]
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ readonly DOKKU_ROOT=/home/dokku
+ DOKKU_ROOT=/home/dokku
+ readonly DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ readonly DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ main upgrade 0.11.3
+ [[ -f /etc/systemd/system/dokku-installer.service ]]
+ [[ -f /etc/init/dokku-installer.conf ]]
+ rm -f /etc/init/dokku-installer.conf
+ rm -f /etc/init/dokku-redeploy.conf
+ rm -f /etc/systemd/system/dokku-installer.service
+ rm -f /etc/systemd/system/dokku-redeploy.service
+ rm -f /etc/update-motd.d/99-dokku
+ nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
+ service nginx reload
+ [[ upgrade == \p\u\r\g\e ]]
Processing triggers for man-db (2.7.5-1) ...
Setting up dokku (0.11.3) ...
+ [[ -e /usr/share/debconf/confmodule ]]
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/dokku.postinst configure 0.10.5
+ [[ -e /usr/share/debconf/confmodule ]]
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ readonly ACTION=configure
+ ACTION=configure
+ readonly VERSION=0.10.5
+ VERSION=0.10.5
+ db_input high dokku/web_config
+ _db_cmd 'INPUT high' dokku/web_config
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'INPUT high dokku/web_config'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ ]*} in
+ return 30
+ true
+ db_go
+ _db_cmd 'GO '
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GO '
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=ok
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ db_get dokku/web_config
+ _db_cmd 'GET dokku/web_config'
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GET dokku/web_config'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=false
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' false = true ']'
+ db_input high dokku/hostname
+ _db_cmd 'INPUT high' dokku/hostname
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'INPUT high dokku/hostname'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ ]*} in
+ return 30
+ true
+ db_input high dokku/vhost_enable
+ _db_cmd 'INPUT high' dokku/vhost_enable
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'INPUT high dokku/vhost_enable'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ ]*} in
+ return 30
+ true
+ '[' configure '!=' reconfigure ']'
+ db_input high dokku/key_file
+ _db_cmd 'INPUT high' dokku/key_file
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'INPUT high dokku/key_file'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ ]*} in
+ return 30
+ true
+ db_go
+ _db_cmd 'GO '
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GO '
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=ok
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ [[ -e /usr/share/debconf/confmodule ]]
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ readonly DOKKU_ROOT=/home/dokku
+ DOKKU_ROOT=/home/dokku
+ readonly DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ case "$1" in
+ mandb
Purging old database entries in /usr/share/man...
Processing manual pages under /usr/share/man...
Purging old database entries in /usr/share/man/sl...
Processing manual pages under /usr/share/man/sl...
Purging old database entries in /usr/share/man/pl...
Processing manual pages under /usr/share/man/pl...
Purging old database entries in /usr/share/man/fr...
Processing manual pages under /usr/share/man/fr...
Purging old database entries in /usr/share/man/tr...
Processing manual pages under /usr/share/man/tr...
Purging old database entries in /usr/share/man/pt...
Processing manual pages under /usr/share/man/pt...
Purging old database entries in /usr/share/man/zh_CN...
Processing manual pages under /usr/share/man/zh_CN...
Purging old database entries in /usr/share/man/ko...
Processing manual pages under /usr/share/man/ko...
Purging old database entries in /usr/share/man/ja...
Processing manual pages under /usr/share/man/ja...
Purging old database entries in /usr/share/man/ru...
Processing manual pages under /usr/share/man/ru...
Purging old database entries in /usr/share/man/pt_BR...
Processing manual pages under /usr/share/man/pt_BR...
Purging old database entries in /usr/share/man/cs...
Processing manual pages under /usr/share/man/cs...
Purging old database entries in /usr/share/man/id...
Processing manual pages under /usr/share/man/id...
Purging old database entries in /usr/share/man/it...
Processing manual pages under /usr/share/man/it...
Purging old database entries in /usr/share/man/de...
Processing manual pages under /usr/share/man/de...
Purging old database entries in /usr/share/man/nl...
Processing manual pages under /usr/share/man/nl...
Purging old database entries in /usr/share/man/sv...
Processing manual pages under /usr/share/man/sv...
Purging old database entries in /usr/share/man/da...
Processing manual pages under /usr/share/man/da...
Purging old database entries in /usr/share/man/zh_TW...
Processing manual pages under /usr/share/man/zh_TW...
Purging old database entries in /usr/share/man/fi...
Processing manual pages under /usr/share/man/fi...
Purging old database entries in /usr/share/man/es...
Processing manual pages under /usr/share/man/es...
Purging old database entries in /usr/share/man/hu...
Processing manual pages under /usr/share/man/hu...
Processing manual pages under /usr/local/man...
0 man subdirectories contained newer manual pages.
0 manual pages were added.
0 stray cats were added.
0 old database entries were purged.
+ '[' '!' -x /usr/bin/docker.io ']'
+ modprobe aufs
+ call-sshcommand create dokku /usr/bin/dokku
+ [[ -x /usr/local/bin/sshcommand ]]
+ /usr/local/bin/sshcommand create dokku /usr/bin/dokku
+ egrep -i '^docker' /etc/group
docker:x:999:dokku
+ usermod -aG docker dokku
+ echo 'Setting up storage directories'
Setting up storage directories
+ mkdir -p /var/lib/dokku/data /var/lib/dokku/data/storage
+ chown dokku:dokku /var/lib/dokku/data /var/lib/dokku/data/storage
+ echo 'Setting up plugin directories'
Setting up plugin directories
+ mkdir -p /var/lib/dokku/core-plugins/available /var/lib/dokku/plugins/available
+ mkdir -p /var/lib/dokku/core-plugins/enabled /var/lib/dokku/plugins/enabled
+ touch /var/lib/dokku/core-plugins/config.toml /var/lib/dokku/plugins/config.toml
+ echo 'Migrating old plugins'
Migrating old plugins
+ read -r plugin
+ find /var/lib/dokku/plugins/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n'
+ '[' available = available ']'
+ continue
+ read -r plugin
+ '[' enabled = available ']'
+ '[' enabled = enabled ']'
+ continue
+ read -r plugin
+ echo 'Enabling all core plugins'
Enabling all core plugins
+ read -r plugin
+ find /var/lib/dokku/core-plugins/available -mindepth 1 -maxdepth 1 -type d -printf '%f\n'
+ '[' '!' -d /var/lib/dokku/plugins/available/certs ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/config ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/repo ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/build-env ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/git ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/shell ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/apps ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/network ']'
+ ln -s /var/lib/dokku/core-plugins/available/network /var/lib/dokku/plugins/available/network
+ PLUGIN_PATH=/var/lib/dokku/core-plugins
+ plugn enable network
+ cmd-export version
+ declare 'desc=Exports a function as a command'
+ declare fn=version as=version
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :help
+ CMDS["$ns:${as/#$ns-/}"]=version
+ cmd-export install
+ declare 'desc=Exports a function as a command'
+ declare fn=install as=install
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
+ CMDS["$ns:${as/#$ns-/}"]=install
+ cmd-export uninstall
+ declare 'desc=Exports a function as a command'
+ declare fn=uninstall as=uninstall
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :install
+ CMDS["$ns:${as/#$ns-/}"]=uninstall
+ cmd-export update
+ declare 'desc=Exports a function as a command'
+ declare fn=update as=update
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
+ CMDS["$ns:${as/#$ns-/}"]=update
+ cmd-export list
+ declare 'desc=Exports a function as a command'
+ declare fn=list as=list
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
+ CMDS["$ns:${as/#$ns-/}"]=list
+ cmd-export trigger
+ declare 'desc=Exports a function as a command'
+ declare fn=trigger as=trigger
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
+ CMDS["$ns:${as/#$ns-/}"]=trigger
+ cmd-export enable
+ declare 'desc=Exports a function as a command'
+ declare fn=enable as=enable
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
+ CMDS["$ns:${as/#$ns-/}"]=enable
+ cmd-export disable
+ declare 'desc=Exports a function as a command'
+ declare fn=disable as=disable
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=disable
+ cmd-export _source source
+ declare 'desc=Exports a function as a command'
+ declare fn=_source as=source
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=_source
+ cmd-export-ns config 'Plugin configuration'
+ declare ns=config 'desc=Plugin configuration'
+ eval 'config() {
declare desc="Plugin configuration"
cmd-ns config "$@";
}'
+ cmd-export config
+ declare 'desc=Exports a function as a command'
+ declare fn=config as=config
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=config
+ CMDS["$1"]=config
+ cmd-export config-get
+ declare 'desc=Exports a function as a command'
+ declare fn=config-get as=config-get
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-get
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-get
+ cmd-export config-export
+ declare 'desc=Exports a function as a command'
+ declare fn=config-export as=config-export
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-export
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-export
+ cmd-export config-set
+ declare 'desc=Exports a function as a command'
+ declare fn=config-set as=config-set
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo config:export
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-set
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-set
+ cmd-export init
+ declare 'desc=Exports a function as a command'
+ declare fn=init as=init
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo config:export
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo config:set
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo init
+ CMDS["$ns:${as/#$ns-/}"]=init
+ cmd-ns '' enable network
+ local ns=
+ shift
+ local cmd=enable
+ shift
+ local status=0
+ + cmd-list ''grep
'^enable$'
+ declare 'desc=Lists available commands'
+ declare ns=
+ sed s/://
+ cmd-list-keys ''
+ declare ns=
+ sort
+ grep '^:'
+ for k in '"${!CMDS[@]}"'
+ echo :disable
+ for k in '"${!CMDS[@]}"'
+ echo :version
+ for k in '"${!CMDS[@]}"'
+ echo :help
+ for k in '"${!CMDS[@]}"'
+ echo :update
+ for k in '"${!CMDS[@]}"'
+ echo config:export
+ for k in '"${!CMDS[@]}"'
+ echo :source
+ for k in '"${!CMDS[@]}"'
+ echo config:get
+ for k in '"${!CMDS[@]}"'
+ echo config
+ for k in '"${!CMDS[@]}"'
+ echo :init
+ for k in '"${!CMDS[@]}"'
+ echo config:set
+ for k in '"${!CMDS[@]}"'
+ echo :config
+ for k in '"${!CMDS[@]}"'
+ echo :trigger
+ for k in '"${!CMDS[@]}"'
+ echo :install
+ for k in '"${!CMDS[@]}"'
+ echo :uninstall
+ for k in '"${!CMDS[@]}"'
+ echo :list
+ for k in '"${!CMDS[@]}"'
+ echo :enable
+ enable network
+ declare 'desc=Enable a plugin'
+ declare plugin=network
+ mkdir -p /var/lib/dokku/core-plugins/enabled
+ ln -fs /var/lib/dokku/core-plugins/available/network /var/lib/dokku/core-plugins/enabled/network
+ reload-gateway
+ /usr/bin/plugn ::: reload-gateway
+ PLUGIN_PATH=/var/lib/dokku/plugins
+ plugn enable network
+ cmd-export version
+ declare 'desc=Exports a function as a command'
+ declare fn=version as=version
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :help
+ CMDS["$ns:${as/#$ns-/}"]=version
+ cmd-export install
+ declare 'desc=Exports a function as a command'
+ declare fn=install as=install
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
+ CMDS["$ns:${as/#$ns-/}"]=install
+ cmd-export uninstall
+ declare 'desc=Exports a function as a command'
+ declare fn=uninstall as=uninstall
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :install
+ CMDS["$ns:${as/#$ns-/}"]=uninstall
+ cmd-export update
+ declare 'desc=Exports a function as a command'
+ declare fn=update as=update
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
+ CMDS["$ns:${as/#$ns-/}"]=update
+ cmd-export list
+ declare 'desc=Exports a function as a command'
+ declare fn=list as=list
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
+ CMDS["$ns:${as/#$ns-/}"]=list
+ cmd-export trigger
+ declare 'desc=Exports a function as a command'
+ declare fn=trigger as=trigger
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
+ CMDS["$ns:${as/#$ns-/}"]=trigger
+ cmd-export enable
+ declare 'desc=Exports a function as a command'
+ declare fn=enable as=enable
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
+ CMDS["$ns:${as/#$ns-/}"]=enable
+ cmd-export disable
+ declare 'desc=Exports a function as a command'
+ declare fn=disable as=disable
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=disable
+ cmd-export _source source
+ declare 'desc=Exports a function as a command'
+ declare fn=_source as=source
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=_source
+ cmd-export-ns config 'Plugin configuration'
+ declare ns=config 'desc=Plugin configuration'
+ eval 'config() {
declare desc="Plugin configuration"
cmd-ns config "$@";
}'
+ cmd-export config
+ declare 'desc=Exports a function as a command'
+ declare fn=config as=config
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=config
+ CMDS["$1"]=config
+ cmd-export config-get
+ declare 'desc=Exports a function as a command'
+ declare fn=config-get as=config-get
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-get
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-get
+ cmd-export config-export
+ declare 'desc=Exports a function as a command'
+ declare fn=config-export as=config-export
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-export
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-export
+ cmd-export config-set
+ declare 'desc=Exports a function as a command'
+ declare fn=config-set as=config-set
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo config:export
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-set
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-set
+ cmd-export init
+ declare 'desc=Exports a function as a command'
+ declare fn=init as=init
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo config:export
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo config:set
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo init
+ CMDS["$ns:${as/#$ns-/}"]=init
+ cmd-ns '' enable network
+ local ns=
+ shift
+ local cmd=enable
+ shift
+ local status=0
+ grep '^enable$'
+ cmd-list ''
+ declare 'desc=Lists available commands'
+ declare ns=
+ sed s/://
+ cmd-list-keys ''
+ declare ns=
+ sort
+ grep '^:'
+ for k in '"${!CMDS[@]}"'
+ echo :disable
+ for k in '"${!CMDS[@]}"'
+ echo :version
+ for k in '"${!CMDS[@]}"'
+ echo :help
+ for k in '"${!CMDS[@]}"'
+ echo :update
+ for k in '"${!CMDS[@]}"'
+ echo config:export
+ for k in '"${!CMDS[@]}"'
+ echo :source
+ for k in '"${!CMDS[@]}"'
+ echo config:get
+ for k in '"${!CMDS[@]}"'
+ echo config
+ for k in '"${!CMDS[@]}"'
+ echo :init
+ for k in '"${!CMDS[@]}"'
+ echo config:set
+ for k in '"${!CMDS[@]}"'
+ echo :config
+ for k in '"${!CMDS[@]}"'
+ echo :trigger
+ for k in '"${!CMDS[@]}"'
+ echo :install
+ for k in '"${!CMDS[@]}"'
+ echo :uninstall
+ for k in '"${!CMDS[@]}"'
+ echo :list
+ for k in '"${!CMDS[@]}"'
+ echo :enable
+ enable network
+ declare 'desc=Enable a plugin'
+ declare plugin=network
+ mkdir -p /var/lib/dokku/plugins/enabled
+ ln -fs /var/lib/dokku/plugins/available/network /var/lib/dokku/plugins/enabled/network
+ reload-gateway
+ /usr/bin/plugn ::: reload-gateway
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/domains ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/enter ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/tar ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/checks ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/logs ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/storage ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/common ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/tags ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/ssh-keys ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/docker-options ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/named-containers ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/ps ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/proxy ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/00_dokku-standard ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/plugin ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/nginx-vhosts ']'
+ read -r plugin
+ '[' '!' -d /var/lib/dokku/plugins/available/20_events ']'
+ read -r plugin
+ find -L /var/lib/dokku -type l -delete
+ chown dokku:dokku -R /var/lib/dokku/plugins /var/lib/dokku/core-plugins
+ echo 'Ensure proper sshcommand path'
Ensure proper sshcommand path
+ echo /usr/bin/dokku
+ [[ -f .ssh/authorized_keys ]]
+ echo 'Install all core plugins'
Install all core plugins
+ dokku plugin:install --core
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ export DOKKU_API_VERSION=1
+ DOKKU_API_VERSION=1
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10
+ DOKKU_NOT_IMPLEMENTED_EXIT=10
+ export DOKKU_VALID_EXIT=0
+ DOKKU_VALID_EXIT=0
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ export DOKKU_CONTAINER_LABEL=dokku
+ DOKKU_CONTAINER_LABEL=dokku
+ export DOKKU_GLOBAL_RUN_ARGS=--label=dokku
+ DOKKU_GLOBAL_RUN_ARGS=--label=dokku
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args plugin:install --core
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ for arg in '"$@"'
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ next_index=2
+ for arg in '"$@"'
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ next_index=3
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ plugin:install =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
++ /usr/bin/tty
++ true
+ [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
+ return 1
+ DOKKU_QUIET_OUTPUT=1
++ id -un
+ [[ root != \d\o\k\k\u ]]
+ [[ ! plugin:install =~ plugin:* ]]
+ [[ plugin:install =~ ^plugin:.* ]]
+ [[ plugin:install != \p\l\u\g\i\n\:\h\e\l\p ]]
+ [[ plugin:install != \p\l\u\g\i\n\:\l\i\s\t ]]
++ id -un
+ [[ root != \r\o\o\t ]]
+ export SSH_USER=root
+ SSH_USER=root
+ [[ -n '' ]]
+ dokku_auth plugin:install --core
+ declare 'desc=calls user-auth plugin trigger'
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default plugin:install --core
+ cmd-export version
+ declare 'desc=Exports a function as a command'
+ declare fn=version as=version
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :help
+ CMDS["$ns:${as/#$ns-/}"]=version
+ cmd-export install
+ declare 'desc=Exports a function as a command'
+ declare fn=install as=install
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
+ CMDS["$ns:${as/#$ns-/}"]=install
+ cmd-export uninstall
+ declare 'desc=Exports a function as a command'
+ declare fn=uninstall as=uninstall
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :install
+ CMDS["$ns:${as/#$ns-/}"]=uninstall
+ cmd-export update
+ declare 'desc=Exports a function as a command'
+ declare fn=update as=update
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
+ CMDS["$ns:${as/#$ns-/}"]=update
+ cmd-export list
+ declare 'desc=Exports a function as a command'
+ declare fn=list as=list
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
+ CMDS["$ns:${as/#$ns-/}"]=list
+ cmd-export trigger
+ declare 'desc=Exports a function as a command'
+ declare fn=trigger as=trigger
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
+ CMDS["$ns:${as/#$ns-/}"]=trigger
+ cmd-export enable
+ declare 'desc=Exports a function as a command'
+ declare fn=enable as=enable
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
+ CMDS["$ns:${as/#$ns-/}"]=enable
+ cmd-export disable
+ declare 'desc=Exports a function as a command'
+ declare fn=disable as=disable
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=disable
+ cmd-export _source source
+ declare 'desc=Exports a function as a command'
+ declare fn=_source as=source
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=_source
+ cmd-export-ns config 'Plugin configuration'
+ declare ns=config 'desc=Plugin configuration'
+ eval 'config() {
declare desc="Plugin configuration"
cmd-ns config "$@";
}'
+ cmd-export config
+ declare 'desc=Exports a function as a command'
+ declare fn=config as=config
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=config
+ CMDS["$1"]=config
+ cmd-export config-get
+ declare 'desc=Exports a function as a command'
+ declare fn=config-get as=config-get
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-get
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-get
+ cmd-export config-export
+ declare 'desc=Exports a function as a command'
+ declare fn=config-export as=config-export
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-export
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-export
+ cmd-export config-set
+ declare 'desc=Exports a function as a command'
+ declare fn=config-set as=config-set
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo config:export
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-set
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-set
+ cmd-export init
+ declare 'desc=Exports a function as a command'
+ declare fn=init as=init
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo config:export
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo config:set
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo init
+ CMDS["$ns:${as/#$ns-/}"]=init
+ cmd-ns '' trigger user-auth root default plugin:install --core
+ local ns=
+ shift
+ local cmd=trigger
+ shift
+ local status=0
+ grep '^trigger$'
+ cmd-list ''
+ declare 'desc=Lists available commands'
+ declare ns=
+ sed s/://
+ cmd-list-keys ''
+ declare ns=
+ sort
+ grep '^:'
+ for k in '"${!CMDS[@]}"'
+ echo :disable
+ for k in '"${!CMDS[@]}"'
+ echo :version
+ for k in '"${!CMDS[@]}"'
+ echo :help
+ for k in '"${!CMDS[@]}"'
+ echo :update
+ for k in '"${!CMDS[@]}"'
+ echo config:export
+ for k in '"${!CMDS[@]}"'
+ echo :source
+ for k in '"${!CMDS[@]}"'
+ echo config:get
+ for k in '"${!CMDS[@]}"'
+ echo config
+ for k in '"${!CMDS[@]}"'
+ echo :init
+ for k in '"${!CMDS[@]}"'
+ echo config:set
+ for k in '"${!CMDS[@]}"'
+ echo :config
+ for k in '"${!CMDS[@]}"'
+ echo :trigger
+ for k in '"${!CMDS[@]}"'
+ echo :install
+ for k in '"${!CMDS[@]}"'
+ echo :uninstall
+ for k in '"${!CMDS[@]}"'
+ echo :list
+ for k in '"${!CMDS[@]}"'
+ echo :enable
+ trigger user-auth root default plugin:install --core
+ declare 'desc=Triggers hook in enabled plugins'
+ declare hook=user-auth
+ shift
+ shopt -s nullglob
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/00_dokku-standard
++ config-export 00_dokku-standard
++ declare 'desc=Export plugin configuration'
++ declare plugin=00_dokku-standard
++ toml-export 00_dokku-standard
++ /usr/bin/plugn ::: toml-export 00_dokku-standard
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/00_dokku-standard/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/20_events
++ config-export 20_events
++ declare 'desc=Export plugin configuration'
++ declare plugin=20_events
++ toml-export 20_events
++ /usr/bin/plugn ::: toml-export 20_events
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/20_events/user-auth ]]
+ /var/lib/dokku/plugins/enabled/20_events/user-auth root default plugin:install --core
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/apps
++ config-export apps
++ declare 'desc=Export plugin configuration'
++ declare plugin=apps
++ toml-export apps
++ /usr/bin/plugn ::: toml-export apps
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/apps/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/apt
++ config-export apt
++ declare 'desc=Export plugin configuration'
++ declare plugin=apt
++ toml-export apt
++ /usr/bin/plugn ::: toml-export apt
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/apt/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/build-env
++ config-export build-env
++ declare 'desc=Export plugin configuration'
++ declare plugin=build-env
++ toml-export build-env
++ /usr/bin/plugn ::: toml-export build-env
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/build-env/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/certs
++ config-export certs
++ declare 'desc=Export plugin configuration'
++ declare plugin=certs
++ toml-export certs
++ /usr/bin/plugn ::: toml-export certs
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/certs/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/checks
++ config-export checks
++ declare 'desc=Export plugin configuration'
++ declare plugin=checks
++ toml-export checks
++ /usr/bin/plugn ::: toml-export checks
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/checks/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/common
++ config-export common
++ declare 'desc=Export plugin configuration'
++ declare plugin=common
++ toml-export common
++ /usr/bin/plugn ::: toml-export common
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/common/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/config
++ config-export config
++ declare 'desc=Export plugin configuration'
++ declare plugin=config
++ toml-export config
++ /usr/bin/plugn ::: toml-export config
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/config/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/docker-options
++ config-export docker-options
++ declare 'desc=Export plugin configuration'
++ declare plugin=docker-options
++ toml-export docker-options
++ /usr/bin/plugn ::: toml-export docker-options
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/docker-options/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/domains
++ config-export domains
++ declare 'desc=Export plugin configuration'
++ declare plugin=domains
++ toml-export domains
++ /usr/bin/plugn ::: toml-export domains
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/domains/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/enter
++ config-export enter
++ declare 'desc=Export plugin configuration'
++ declare plugin=enter
++ toml-export enter
++ /usr/bin/plugn ::: toml-export enter
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/enter/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/git
++ config-export git
++ declare 'desc=Export plugin configuration'
++ declare plugin=git
++ toml-export git
++ /usr/bin/plugn ::: toml-export git
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/git/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/letsencrypt
++ config-export letsencrypt
++ declare 'desc=Export plugin configuration'
++ declare plugin=letsencrypt
++ toml-export letsencrypt
++ /usr/bin/plugn ::: toml-export letsencrypt
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/letsencrypt/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/logs
++ config-export logs
++ declare 'desc=Export plugin configuration'
++ declare plugin=logs
++ toml-export logs
++ /usr/bin/plugn ::: toml-export logs
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/logs/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/monit
++ config-export monit
++ declare 'desc=Export plugin configuration'
++ declare plugin=monit
++ toml-export monit
++ /usr/bin/plugn ::: toml-export monit
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/monit/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/named-containers
++ config-export named-containers
++ declare 'desc=Export plugin configuration'
++ declare plugin=named-containers
++ toml-export named-containers
++ /usr/bin/plugn ::: toml-export named-containers
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/named-containers/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/network
++ config-export network
++ declare 'desc=Export plugin configuration'
++ declare plugin=network
++ toml-export network
++ /usr/bin/plugn ::: toml-export network
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/network/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/nginx-vhosts
++ config-export nginx-vhosts
++ declare 'desc=Export plugin configuration'
++ declare plugin=nginx-vhosts
++ toml-export nginx-vhosts
++ /usr/bin/plugn ::: toml-export nginx-vhosts
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/nginx-vhosts/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/plugin
++ config-export plugin
++ declare 'desc=Export plugin configuration'
++ declare plugin=plugin
++ toml-export plugin
++ /usr/bin/plugn ::: toml-export plugin
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/plugin/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/proxy
++ config-export proxy
++ declare 'desc=Export plugin configuration'
++ declare plugin=proxy
++ toml-export proxy
++ /usr/bin/plugn ::: toml-export proxy
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/proxy/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/ps
++ config-export ps
++ declare 'desc=Export plugin configuration'
++ declare plugin=ps
++ toml-export ps
++ /usr/bin/plugn ::: toml-export ps
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/ps/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/repo
++ config-export repo
++ declare 'desc=Export plugin configuration'
++ declare plugin=repo
++ toml-export repo
++ /usr/bin/plugn ::: toml-export repo
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/repo/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/shell
++ config-export shell
++ declare 'desc=Export plugin configuration'
++ declare plugin=shell
++ toml-export shell
++ /usr/bin/plugn ::: toml-export shell
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/shell/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/ssh-keys
++ config-export ssh-keys
++ declare 'desc=Export plugin configuration'
++ declare plugin=ssh-keys
++ toml-export ssh-keys
++ /usr/bin/plugn ::: toml-export ssh-keys
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/ssh-keys/user-auth ]]
+ /var/lib/dokku/plugins/enabled/ssh-keys/user-auth root default plugin:install --core
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ plugin:install =~ (ssh-keys:add|ssh-keys:remove) ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/storage
++ config-export storage
++ declare 'desc=Export plugin configuration'
++ declare plugin=storage
++ toml-export storage
++ /usr/bin/plugn ::: toml-export storage
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/storage/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/tags
++ config-export tags
++ declare 'desc=Export plugin configuration'
++ declare plugin=tags
++ toml-export tags
++ /usr/bin/plugn ::: toml-export tags
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/tags/user-auth ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/plugins/enabled/tar
++ config-export tar
++ declare 'desc=Export plugin configuration'
++ declare plugin=tar
++ toml-export tar
++ /usr/bin/plugn ::: toml-export tar
++ cat /var/lib/dokku/plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/plugins/enabled/tar/user-auth ]]
+ shopt -u nullglob
+ trigger-gateway user-auth root default plugin:install --core
+ /usr/bin/plugn ::: trigger-gateway user-auth root default plugin:install --core
+ return 0
+ case "$1" in
+ execute_dokku_cmd plugin:install --core
+ declare 'desc=executes dokku sub-commands'
+ local PLUGIN_NAME=plugin:install
+ local PLUGIN_CMD=plugin:install
+ local implemented=0
+ local script
+ argv=("$@")
+ local argv
+ case "$PLUGIN_NAME" in
++ readlink -f /var/lib/dokku/plugins/enabled/plugin
+ [[ /var/lib/dokku/core-plugins/available/plugin == *core-plugins* ]]
+ [[ plugin:install == \p\l\u\g\i\n\:\i\n\s\t\a\l\l ]]
+ shift 1
+ [[ ! -z '' ]]
+ set -- plugin:install --core
+ [[ -x /var/lib/dokku/plugins/enabled/plugin:install/subcommands/default ]]
+ [[ -x /var/lib/dokku/plugins/enabled/plugin:install/subcommands/plugin:install ]]
+ [[ -x /var/lib/dokku/plugins/enabled/plugin/subcommands/install ]]
+ [[ -n install ]]
+ /var/lib/dokku/plugins/enabled/plugin/subcommands/install plugin:install --core
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/plugin/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ plugin_install_cmd plugin:install --core
+ declare 'desc=installs a plugin from URL and calls install plugin trigger via command line'
+ local cmd=plugin:install
+ case "$2" in
+ [[ 2 -gt 2 ]]
+ PLUGIN_PATH=/var/lib/dokku/core-plugins
+ plugn trigger install
+ cmd-export version
+ declare 'desc=Exports a function as a command'
+ declare fn=version as=version
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :help
+ CMDS["$ns:${as/#$ns-/}"]=version
+ cmd-export install
+ declare 'desc=Exports a function as a command'
+ declare fn=install as=install
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
+ CMDS["$ns:${as/#$ns-/}"]=install
+ cmd-export uninstall
+ declare 'desc=Exports a function as a command'
+ declare fn=uninstall as=uninstall
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :install
+ CMDS["$ns:${as/#$ns-/}"]=uninstall
+ cmd-export update
+ declare 'desc=Exports a function as a command'
+ declare fn=update as=update
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
+ CMDS["$ns:${as/#$ns-/}"]=update
+ cmd-export list
+ declare 'desc=Exports a function as a command'
+ declare fn=list as=list
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
+ CMDS["$ns:${as/#$ns-/}"]=list
+ cmd-export trigger
+ declare 'desc=Exports a function as a command'
+ declare fn=trigger as=trigger
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
+ CMDS["$ns:${as/#$ns-/}"]=trigger
+ cmd-export enable
+ declare 'desc=Exports a function as a command'
+ declare fn=enable as=enable
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
+ CMDS["$ns:${as/#$ns-/}"]=enable
+ cmd-export disable
+ declare 'desc=Exports a function as a command'
+ declare fn=disable as=disable
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=disable
+ cmd-export _source source
+ declare 'desc=Exports a function as a command'
+ declare fn=_source as=source
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=_source
+ cmd-export-ns config 'Plugin configuration'
+ declare ns=config 'desc=Plugin configuration'
+ eval 'config() {
declare desc="Plugin configuration"
cmd-ns config "$@";
}'
+ cmd-export config
+ declare 'desc=Exports a function as a command'
+ declare fn=config as=config
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ CMDS["$ns:${as/#$ns-/}"]=config
+ CMDS["$1"]=config
+ cmd-export config-get
+ declare 'desc=Exports a function as a command'
+ declare fn=config-get as=config-get
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-get
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-get
+ cmd-export config-export
+ declare 'desc=Exports a function as a command'
+ declare fn=config-export as=config-export
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-export
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-export
+ cmd-export config-set
+ declare 'desc=Exports a function as a command'
+ declare fn=config-set as=config-set
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo config:export
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo config-set
+ ns=config
+ CMDS["$ns:${as/#$ns-/}"]=config-set
+ cmd-export init
+ declare 'desc=Exports a function as a command'
+ declare fn=init as=init
+ local ns=
++ cmd-list-ns
++ sort
++ grep -v :
++ for k in '"${!CMDS[@]}"'
++ echo :disable
++ for k in '"${!CMDS[@]}"'
++ echo :version
++ for k in '"${!CMDS[@]}"'
++ echo :help
++ for k in '"${!CMDS[@]}"'
++ echo :update
++ for k in '"${!CMDS[@]}"'
++ echo config:export
++ for k in '"${!CMDS[@]}"'
++ echo :source
++ for k in '"${!CMDS[@]}"'
++ echo config:get
++ for k in '"${!CMDS[@]}"'
++ echo config
++ for k in '"${!CMDS[@]}"'
++ echo config:set
++ for k in '"${!CMDS[@]}"'
++ echo :config
++ for k in '"${!CMDS[@]}"'
++ echo :trigger
++ for k in '"${!CMDS[@]}"'
++ echo :install
++ for k in '"${!CMDS[@]}"'
++ echo :uninstall
++ for k in '"${!CMDS[@]}"'
++ echo :list
++ for k in '"${!CMDS[@]}"'
++ echo :enable
+ for n in '$(cmd-list-ns)'
+ grep '^config-'
+ echo init
+ CMDS["$ns:${as/#$ns-/}"]=init
+ cmd-ns '' trigger install
+ local ns=
+ shift
+ local cmd=trigger
+ shift
+ local status=0
+ grep '^trigger$'
+ cmd-list ''
+ declare 'desc=Lists available commands'
+ declare ns=
+ sed s/://
+ cmd-list-keys ''
+ declare ns=
+ sort
+ grep '^:'
+ for k in '"${!CMDS[@]}"'
+ echo :disable
+ for k in '"${!CMDS[@]}"'
+ echo :version
+ for k in '"${!CMDS[@]}"'
+ echo :help
+ for k in '"${!CMDS[@]}"'
+ echo :update
+ for k in '"${!CMDS[@]}"'
+ echo config:export
+ for k in '"${!CMDS[@]}"'
+ echo :source
+ for k in '"${!CMDS[@]}"'
+ echo config:get
+ for k in '"${!CMDS[@]}"'
+ echo config
+ for k in '"${!CMDS[@]}"'
+ echo :init
+ for k in '"${!CMDS[@]}"'
+ echo config:set
+ for k in '"${!CMDS[@]}"'
+ echo :config
+ for k in '"${!CMDS[@]}"'
+ echo :trigger
+ for k in '"${!CMDS[@]}"'
+ echo :install
+ for k in '"${!CMDS[@]}"'
+ echo :uninstall
+ for k in '"${!CMDS[@]}"'
+ echo :list
+ for k in '"${!CMDS[@]}"'
+ echo :enable
+ trigger install
+ declare 'desc=Triggers hook in enabled plugins'
+ declare hook=install
+ shift
+ shopt -s nullglob
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/00_dokku-standard
++ config-export 00_dokku-standard
++ declare 'desc=Export plugin configuration'
++ declare plugin=00_dokku-standard
++ toml-export 00_dokku-standard
++ /usr/bin/plugn ::: toml-export 00_dokku-standard
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/00_dokku-standard/install ]]
+ /var/lib/dokku/core-plugins/enabled/00_dokku-standard/install
+ [[ ! -f /home/dokku/HOSTNAME ]]
+ [[ ! -f /home/dokku/VHOST ]]
++ which dokku
+ dokku_path=/usr/bin/dokku
++ /sbin/init --version
+ [[ '' =~ upstart ]]
++ systemctl
+ [[ UNIT LOAD ACTIVE SUB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
sys-devices-pci0000:00-0000:00:03.0-virtio0-net-eth0.device loaded active plugged Virtio network device
sys-devices-pci0000:00-0000:00:05.0-virtio2-block-vda-vda1.device loaded active plugged /sys/devices/pci0000:00/0000:00:05.0/virtio2/block/vda/vda1
sys-devices-pci0000:00-0000:00:05.0-virtio2-block-vda.device loaded active plugged /sys/devices/pci0000:00/0000:00:05.0/virtio2/block/vda
sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS10.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS10
sys-devices-platform-serial8250-tty-ttyS11.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS11
sys-devices-platform-serial8250-tty-ttyS12.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS12
sys-devices-platform-serial8250-tty-ttyS13.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS13
sys-devices-platform-serial8250-tty-ttyS14.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS14
sys-devices-platform-serial8250-tty-ttyS15.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS15
sys-devices-platform-serial8250-tty-ttyS16.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS16
sys-devices-platform-serial8250-tty-ttyS17.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS17
sys-devices-platform-serial8250-tty-ttyS18.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS18
sys-devices-platform-serial8250-tty-ttyS19.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS19
sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS20.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS20
sys-devices-platform-serial8250-tty-ttyS21.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS21
sys-devices-platform-serial8250-tty-ttyS22.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS22
sys-devices-platform-serial8250-tty-ttyS23.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS23
sys-devices-platform-serial8250-tty-ttyS24.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS24
sys-devices-platform-serial8250-tty-ttyS25.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS25
sys-devices-platform-serial8250-tty-ttyS26.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS26
sys-devices-platform-serial8250-tty-ttyS27.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS27
sys-devices-platform-serial8250-tty-ttyS28.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS28
sys-devices-platform-serial8250-tty-ttyS29.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS29
sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-devices-platform-serial8250-tty-ttyS30.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS30
sys-devices-platform-serial8250-tty-ttyS31.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS31
sys-devices-platform-serial8250-tty-ttyS4.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS4
sys-devices-platform-serial8250-tty-ttyS5.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS5
sys-devices-platform-serial8250-tty-ttyS6.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS6
sys-devices-platform-serial8250-tty-ttyS7.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS7
sys-devices-platform-serial8250-tty-ttyS8.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS8
sys-devices-platform-serial8250-tty-ttyS9.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS9
sys-devices-pnp0-00:04-tty-ttyS0.device loaded active plugged /sys/devices/pnp0/00:04/tty/ttyS0
sys-devices-virtual-misc-rfkill.device loaded active plugged /sys/devices/virtual/misc/rfkill
sys-devices-virtual-net-docker0.device loaded active plugged /sys/devices/virtual/net/docker0
sys-devices-virtual-net-veth0f17978.device loaded active plugged /sys/devices/virtual/net/veth0f17978
sys-devices-virtual-net-veth13df9c3.device loaded active plugged /sys/devices/virtual/net/veth13df9c3
sys-devices-virtual-net-veth1888e13.device loaded active plugged /sys/devices/virtual/net/veth1888e13
sys-devices-virtual-net-veth20a408d.device loaded active plugged /sys/devices/virtual/net/veth20a408d
sys-devices-virtual-net-veth337fd95.device loaded active plugged /sys/devices/virtual/net/veth337fd95
sys-devices-virtual-net-veth3edca0e.device loaded active plugged /sys/devices/virtual/net/veth3edca0e
sys-devices-virtual-net-veth403a165.device loaded active plugged /sys/devices/virtual/net/veth403a165
sys-devices-virtual-net-veth463c6b0.device loaded active plugged /sys/devices/virtual/net/veth463c6b0
sys-devices-virtual-net-veth5472a98.device loaded active plugged /sys/devices/virtual/net/veth5472a98
sys-devices-virtual-net-vethabfb14b.device loaded active plugged /sys/devices/virtual/net/vethabfb14b
sys-devices-virtual-net-vethb32d687.device loaded active plugged /sys/devices/virtual/net/vethb32d687
sys-devices-virtual-net-vethcea1864.device loaded active plugged /sys/devices/virtual/net/vethcea1864
sys-devices-virtual-net-vethe45f8e1.device loaded active plugged /sys/devices/virtual/net/vethe45f8e1
sys-devices-virtual-tty-ttyprintk.device loaded active plugged /sys/devices/virtual/tty/ttyprintk
sys-module-fuse.device loaded active plugged /sys/module/fuse
sys-subsystem-net-devices-docker0.device loaded active plugged /sys/subsystem/net/devices/docker0
sys-subsystem-net-devices-ens3.device loaded active plugged Virtio network device
sys-subsystem-net-devices-eth0.device loaded active plugged Virtio network device
sys-subsystem-net-devices-veth0f17978.device loaded active plugged /sys/subsystem/net/devices/veth0f17978
sys-subsystem-net-devices-veth13df9c3.device loaded active plugged /sys/subsystem/net/devices/veth13df9c3
sys-subsystem-net-devices-veth1888e13.device loaded active plugged /sys/subsystem/net/devices/veth1888e13
sys-subsystem-net-devices-veth20a408d.device loaded active plugged /sys/subsystem/net/devices/veth20a408d
sys-subsystem-net-devices-veth337fd95.device loaded active plugged /sys/subsystem/net/devices/veth337fd95
sys-subsystem-net-devices-veth3edca0e.device loaded active plugged /sys/subsystem/net/devices/veth3edca0e
sys-subsystem-net-devices-veth403a165.device loaded active plugged /sys/subsystem/net/devices/veth403a165
sys-subsystem-net-devices-veth463c6b0.device loaded active plugged /sys/subsystem/net/devices/veth463c6b0
sys-subsystem-net-devices-veth5472a98.device loaded active plugged /sys/subsystem/net/devices/veth5472a98
sys-subsystem-net-devices-vethabfb14b.device loaded active plugged /sys/subsystem/net/devices/vethabfb14b
sys-subsystem-net-devices-vethb32d687.device loaded active plugged /sys/subsystem/net/devices/vethb32d687
sys-subsystem-net-devices-vethcea1864.device loaded active plugged /sys/subsystem/net/devices/vethcea1864
sys-subsystem-net-devices-vethe45f8e1.device loaded active plugged /sys/subsystem/net/devices/vethe45f8e1
-.mount loaded active mounted /
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
run-docker-netns-1526b41b5e97.mount loaded active mounted /run/docker/netns/1526b41b5e97
run-docker-netns-1de7206dfd82.mount loaded active mounted /run/docker/netns/1de7206dfd82
run-docker-netns-25ad375d46c8.mount loaded active mounted /run/docker/netns/25ad375d46c8
run-docker-netns-392bf166dd4f.mount loaded active mounted /run/docker/netns/392bf166dd4f
run-docker-netns-5bcaa53f5a22.mount loaded active mounted /run/docker/netns/5bcaa53f5a22
run-docker-netns-806104dc0074.mount loaded active mounted /run/docker/netns/806104dc0074
run-docker-netns-8d7308abb4a1.mount loaded active mounted /run/docker/netns/8d7308abb4a1
run-docker-netns-9f09454e5568.mount loaded active mounted /run/docker/netns/9f09454e5568
run-docker-netns-c3d49844ec50.mount loaded active mounted /run/docker/netns/c3d49844ec50
run-docker-netns-c51087a205bc.mount loaded active mounted /run/docker/netns/c51087a205bc
run-docker-netns-cbeabbaa9521.mount loaded active mounted /run/docker/netns/cbeabbaa9521
run-docker-netns-dd1fc5e0088e.mount loaded active mounted /run/docker/netns/dd1fc5e0088e
run-docker-netns-ff1faa8e6357.mount loaded active mounted /run/docker/netns/ff1faa8e6357
run-user-0.mount loaded active mounted /run/user/0
sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
sys-kernel-debug.mount loaded active mounted Debug File System
var-lib-docker-aufs-mnt-264835f1421f73ba91c02562fea962d4e1fad6f736769bda7d7f006e5f6d8a70.mount loaded active mounted /var/lib/docker/aufs/mnt/264835f1421f73ba91c02562fea962d4e1fad6f736769bda7d7f006e5f6d8a70
var-lib-docker-aufs-mnt-2d8e19cd16409e3d8426393148c2eb7abcb8a0c8f16c3a3803042a53f8c5d27a.mount loaded active mounted /var/lib/docker/aufs/mnt/2d8e19cd16409e3d8426393148c2eb7abcb8a0c8f16c3a3803042a53f8c5d27a
var-lib-docker-aufs-mnt-49a082d16d07aaa22a1fa2df37332195f45fd05a3bde2776e99d18e30348bff1.mount loaded active mounted /var/lib/docker/aufs/mnt/49a082d16d07aaa22a1fa2df37332195f45fd05a3bde2776e99d18e30348bff1
var-lib-docker-aufs-mnt-617e0b4d5f8a13f822d26878d4349f481b80a3b09c112a74c973f0a8459737c2.mount loaded active mounted /var/lib/docker/aufs/mnt/617e0b4d5f8a13f822d26878d4349f481b80a3b09c112a74c973f0a8459737c2
var-lib-docker-aufs-mnt-6cefac9fb46a4d683112ca60c735b330d59671716993ead7560c81b3b3bf439d.mount loaded active mounted /var/lib/docker/aufs/mnt/6cefac9fb46a4d683112ca60c735b330d59671716993ead7560c81b3b3bf439d
var-lib-docker-aufs-mnt-6d32783bee801aef62ba0d2d9711480363384b355eb90082adff7824ceac6dce.mount loaded active mounted /var/lib/docker/aufs/mnt/6d32783bee801aef62ba0d2d9711480363384b355eb90082adff7824ceac6dce
var-lib-docker-aufs-mnt-bfe4fd92fdc7f7b12308fb2cb185ca45b79777b340cb27b5d67542b434f0d4dc.mount loaded active mounted /var/lib/docker/aufs/mnt/bfe4fd92fdc7f7b12308fb2cb185ca45b79777b340cb27b5d67542b434f0d4dc
var-lib-docker-aufs-mnt-c795a308c138f2d53b8bdf7fd13bc06a0ff369382c3638d98aae6e60defa350a.mount loaded active mounted /var/lib/docker/aufs/mnt/c795a308c138f2d53b8bdf7fd13bc06a0ff369382c3638d98aae6e60defa350a
var-lib-docker-aufs-mnt-d0745baf1a22b3a940b781c73a949f9683c8c82523404ff7721a5271d7ffddd8.mount loaded active mounted /var/lib/docker/aufs/mnt/d0745baf1a22b3a940b781c73a949f9683c8c82523404ff7721a5271d7ffddd8
var-lib-docker-aufs-mnt-dcc22689071ae28cf2755bb72296367fa5ee975ea8a45c19b2af8dbd991eb446.mount loaded active mounted /var/lib/docker/aufs/mnt/dcc22689071ae28cf2755bb72296367fa5ee975ea8a45c19b2af8dbd991eb446
var-lib-docker-aufs-mnt-e72ccbef51670f81009e0cb0e186a97b36593adf22674eabac8266c94ae9a706.mount loaded active mounted /var/lib/docker/aufs/mnt/e72ccbef51670f81009e0cb0e186a97b36593adf22674eabac8266c94ae9a706
var-lib-docker-aufs-mnt-ef492366c8e89c660e2de8aadf94e9421423fd22137cc355f6795a4a56f74fdb.mount loaded active mounted /var/lib/docker/aufs/mnt/ef492366c8e89c660e2de8aadf94e9421423fd22137cc355f6795a4a56f74fdb
var-lib-docker-aufs-mnt-fdbe1551e4c212ce36ed86e66d83ea6afba7db9a2ce036c322f0fcad9f5f33cc.mount loaded active mounted /var/lib/docker/aufs/mnt/fdbe1551e4c212ce36ed86e66d83ea6afba7db9a2ce036c322f0fcad9f5f33cc
var-lib-docker-aufs.mount loaded active mounted /var/lib/docker/aufs
var-lib-docker-containers-0a44bee75c08a27990ee864c62bca272344039eadd138e09532b104bc26ff57b-shm.mount loaded active mounted /var/lib/docker/containers/0a44bee75c08a27990ee864c62bca272344039eadd138e09532b104bc26ff57b/shm
var-lib-docker-containers-14ffa744cd17d86344f329714b3f8a5addfb4c204a2b0a2586ae065903f7d04b-shm.mount loaded active mounted /var/lib/docker/containers/14ffa744cd17d86344f329714b3f8a5addfb4c204a2b0a2586ae065903f7d04b/shm
var-lib-docker-containers-1a9834974da7e630487e94a08c292910460f259d4aaeed34e34353de45bca156-shm.mount loaded active mounted /var/lib/docker/containers/1a9834974da7e630487e94a08c292910460f259d4aaeed34e34353de45bca156/shm
var-lib-docker-containers-1ab418079207be3240553bd4b0120c6bb0c745e119e277553add4d68c89c0f79-shm.mount loaded active mounted /var/lib/docker/containers/1ab418079207be3240553bd4b0120c6bb0c745e119e277553add4d68c89c0f79/shm
var-lib-docker-containers-1f2d9e186795d347609d5f1da08da34f99adb1536d5f0661d2b206e8dd51335b-shm.mount loaded active mounted /var/lib/docker/containers/1f2d9e186795d347609d5f1da08da34f99adb1536d5f0661d2b206e8dd51335b/shm
var-lib-docker-containers-39737e31ed325f405bce8ad85fe07d40823bab2a2255b436313d0a4cd5d64b34-shm.mount loaded active mounted /var/lib/docker/containers/39737e31ed325f405bce8ad85fe07d40823bab2a2255b436313d0a4cd5d64b34/shm
var-lib-docker-containers-57de3236d3d9192cf82035492b15c66a8f4b1671c7824b021c2b5fa1fbd5fa44-shm.mount loaded active mounted /var/lib/docker/containers/57de3236d3d9192cf82035492b15c66a8f4b1671c7824b021c2b5fa1fbd5fa44/shm
var-lib-docker-containers-6e2089b4aa5947593ac2d40232f65b6b03d0c0809d1b5047f749f4d387a69a6c-shm.mount loaded active mounted /var/lib/docker/containers/6e2089b4aa5947593ac2d40232f65b6b03d0c0809d1b5047f749f4d387a69a6c/shm
var-lib-docker-containers-771842560eeadd49db5b16ebadbe854c9f7cfc3cafbf9628e298a7df8aa23036-shm.mount loaded active mounted /var/lib/docker/containers/771842560eeadd49db5b16ebadbe854c9f7cfc3cafbf9628e298a7df8aa23036/shm
var-lib-docker-containers-848bdac5a4f652604afea30450d1af0e0a03cee7224b767e6ddf59c39a505174-shm.mount loaded active mounted /var/lib/docker/containers/848bdac5a4f652604afea30450d1af0e0a03cee7224b767e6ddf59c39a505174/shm
var-lib-docker-containers-d020499c8d327526e9d7c08273449077cde54ed3e7cede1480d58b3815465719-shm.mount loaded active mounted /var/lib/docker/containers/d020499c8d327526e9d7c08273449077cde54ed3e7cede1480d58b3815465719/shm
var-lib-docker-containers-fb1937d882174b45b28c2d7044ab2427a132fa7a3797ef6ef665e93347662d21-shm.mount loaded active mounted /var/lib/docker/containers/fb1937d882174b45b28c2d7044ab2427a132fa7a3797ef6ef665e93347662d21/shm
var-lib-docker-containers-fe56c009c258e0384d6e7e1c7657112c545564eda8e0eb0ed73f12b4adb5257b-shm.mount loaded active mounted /var/lib/docker/containers/fe56c009c258e0384d6e7e1c7657112c545564eda8e0eb0ed73f12b4adb5257b/shm
var-lib-lxcfs.mount loaded active mounted /var/lib/lxcfs
acpid.path loaded active running ACPI Events Check
systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
systemd-networkd-resolvconf-update.path loaded active waiting Trigger resolvconf update for networkd DNS
init.scope loaded active running System and Service Manager
session-180.scope loaded active running Session 180 of user root
accounts-daemon.service loaded active running Accounts Service
acpid.service loaded active running ACPI event daemon
apparmor.service loaded active exited LSB: AppArmor initialization
apport.service loaded active exited LSB: automatic crash report generation
atd.service loaded active running Deferred execution scheduler
cgroupfs-mount.service loaded active exited LSB: Set up cgroupfs mounts.
cloud-config.service loaded active exited Apply the settings specified in cloud-config
cloud-final.service loaded active exited Execute cloud user/final scripts
cloud-init-local.service loaded active exited Initial cloud-init job (pre-networking)
cloud-init.service loaded active exited Initial cloud-init job (metadata service crawler)
console-setup.service loaded active exited Set console font and keymap
cron.service loaded active running Regular background program processing daemon
dbus.service loaded active running D-Bus System Message Bus
do-agent.service loaded active running DigitalOcean agent
docker.service loaded active running Docker Application Container Engine
dokku-monit.service loaded active running Monit instance for monitoring dokku apps
[email protected] loaded active running Getty on tty1
grub-common.service loaded active exited LSB: Record successful boot for GRUB
irqbalance.service loaded active exited LSB: daemon to balance interrupts for SMP systems
iscsid.service loaded active running iSCSI initiator daemon (iscsid)
keyboard-setup.service loaded active exited Set console keymap
kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
lvm2-lvmetad.service loaded active running LVM2 metadata daemon
lvm2-monitor.service loaded active exited Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
lxcfs.service loaded active running FUSE filesystem for LXC
lxd-containers.service loaded active exited LXD - container startup/shutdown
mdadm.service loaded active running LSB: MD monitoring daemon
monit.service loaded active running LSB: service and resource monitoring daemon
networking.service loaded active exited Raise network interfaces
nginx.service loaded active running A high performance web server and a reverse proxy server
ondemand.service loaded active exited LSB: Set the CPU Frequency Scaling governor to "ondemand"
open-iscsi.service loaded active exited Login to default iSCSI targets
polkitd.service loaded active running Authenticate and Authorize Users to Run Privileged Tasks
rc-local.service loaded active exited /etc/rc.local Compatibility
resolvconf.service loaded active exited Nameserver information manager
rsyslog.service loaded active running System Logging Service
[email protected] loaded active running Serial Getty on ttyS0
setvtrgb.service loaded active exited Set console scheme
snapd.service loaded active running Snappy daemon
ssh.service loaded active running OpenBSD Secure Shell server
sysstat.service loaded active exited LSB: Start/stop sysstat's sadc
systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-modules-load.service loaded active exited Load Kernel Modules
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-timesyncd.service loaded active running Network Time Synchronization
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
ufw.service loaded active exited Uncomplicated firewall
unattended-upgrades.service loaded active exited Unattended Upgrades Shutdown
[email protected] loaded active running User Manager for UID 0
-.slice loaded active active Root Slice
system-getty.slice loaded active active system-getty.slice
system-serial\x2dgetty.slice loaded active active system-serial\x2dgetty.slice
system.slice loaded active active System Slice
user-0.slice loaded active active User Slice of root
user.slice loaded active active User and Session Slice
acpid.socket loaded active running ACPID Listen Socket
dbus.socket loaded active running D-Bus System Message Bus Socket
dm-event.socket loaded active listening Device-mapper event daemon FIFOs
docker.socket loaded active running Docker Socket for the API
lvm2-lvmetad.socket loaded active running LVM2 metadata daemon socket
lvm2-lvmpolld.socket loaded active listening LVM2 poll daemon socket
lxd.socket loaded active listening LXD - unix socket
snapd.socket loaded active running Socket activation for snappy daemon
syslog.socket loaded active running Syslog Socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald-audit.socket loaded active running Journal Audit Socket
systemd-journald-dev-log.socket loaded active running Journal Socket (/dev/log)
systemd-journald.socket loaded active running Journal Socket
systemd-rfkill.socket loaded active listening Load/Save RF Kill Switch Status /dev/rfkill Watch
systemd-udevd-control.socket loaded active running udev Control Socket
systemd-udevd-kernel.socket loaded active running udev Kernel Socket
uuidd.socket loaded active listening UUID daemon activation socket
basic.target loaded active active Basic System
cloud-config.target loaded active active Cloud-config availability
cloud-init.target loaded active active Cloud-init target
cryptsetup.target loaded active active Encrypted Volumes
getty.target loaded active active Login Prompts
graphical.target loaded active active Graphical Interface
local-fs-pre.target loaded active active Local File Systems (Pre)
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User System
network-online.target loaded active active Network is Online
network-pre.target loaded active active Network (Pre)
network.target loaded active active Network
nss-user-lookup.target loaded active active User and Group Name Lookups
paths.target loaded active active Paths
remote-fs-pre.target loaded active active Remote File Systems (Pre)
remote-fs.target loaded active active Remote File Systems
slices.target loaded active active Slices
sockets.target loaded active active Sockets
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
time-sync.target loaded active active System Time Synchronized
timers.target loaded active active Timers
apt-daily-upgrade.timer loaded active waiting Daily apt upgrade and clean activities
apt-daily.timer loaded active waiting Daily apt download activities
● snap-repair.timer not-found failed failed snap-repair.timer
snapd.refresh.timer loaded active waiting Timer to automatically refresh installed snaps
systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
230 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'. =~ -\.mount ]]
+ cat
+ command -v systemctl
+ systemctl enable dokku-redeploy
+ mkdir -p /etc/update-motd.d
+ cat
+ chmod +x /etc/update-motd.d/99-dokku
+ chown dokku:dokku /home/dokku/HOSTNAME
+ [[ -f /home/dokku/VHOST ]]
+ chown dokku:dokku /home/dokku/VHOST
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/20_events
++ config-export 20_events
++ declare 'desc=Export plugin configuration'
++ declare plugin=20_events
++ toml-export 20_events
++ /usr/bin/plugn ::: toml-export 20_events
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/20_events/install ]]
+ /var/lib/dokku/core-plugins/enabled/20_events/install
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ DOKKU_RSYSLOG_FILTER_DIR=/etc/rsyslog.d
+ DOKKU_RSYSLOG_FILTER=/etc/rsyslog.d/99-dokku.conf
+ DOKKU_LOGROTATE_FILE=/etc/logrotate.d/dokku
+ flag_rsyslog_needs_restart=n
+ mkdir -m 775 -p /var/log/dokku
+ case "$DOKKU_DISTRO" in
+ chown syslog:dokku /var/log/dokku
+ [[ ! -f /var/log/dokku/events.log ]]
+ [[ -d /etc/rsyslog.d ]]
+ [[ ! -f /etc/rsyslog.d/99-dokku.conf ]]
+ [[ ! -f /etc/logrotate.d/dokku ]]
+ [[ -f /etc/rsyslog.d/99-dokku.conf ]]
+ [[ n == \y ]]
+ [[ ! -n '' ]]
+ exit 0
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/apps
++ config-export apps
++ declare 'desc=Export plugin configuration'
++ declare plugin=apps
++ toml-export apps
++ /usr/bin/plugn ::: toml-export apps
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/apps/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/build-env
++ config-export build-env
++ declare 'desc=Export plugin configuration'
++ declare plugin=build-env
++ toml-export build-env
++ /usr/bin/plugn ::: toml-export build-env
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/build-env/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/certs
++ config-export certs
++ declare 'desc=Export plugin configuration'
++ declare plugin=certs
++ toml-export certs
++ /usr/bin/plugn ::: toml-export certs
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/certs/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/checks
++ config-export checks
++ declare 'desc=Export plugin configuration'
++ declare plugin=checks
++ toml-export checks
++ /usr/bin/plugn ::: toml-export checks
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/checks/install ]]
+ /var/lib/dokku/core-plugins/enabled/checks/install
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/config/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ migrate_checks_vars_0_5_0
+ declare 'desc=migrates deprecated CHECKS config variables to simplified counter part introduced in 0.5.x'
++ dokku_apps
++ declare 'desc=prints list of all local apps'
+++ sort
+++ find /home/dokku -follow -maxdepth 1 -mindepth 1 -type d '!' -name tls '!' -name '.*' -printf '%f\n'
++ local 'INSTALLED_APPS=bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname'
++ [[ -n bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname ]]
++ echo 'bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname'
+ local 'APPS=bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname'
++ config_get --global DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get --global DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_SKIP_ALL_CHECKS
++ true
+ local GLOBAL_SKIP_ALL_CHECKS=
++ config_get --global DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get --global DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_SKIP_DEFAULT_CHECKS
++ true
+ local GLOBAL_SKIP_DEFAULT_CHECKS=
+ local app
+ dokku_log_info1 'Migrating zero downtime env variables to 0.5.x. The following variables have been deprecated'
+ declare 'desc=log info1 formatter'
+ echo '-----> Migrating zero downtime env variables to 0.5.x. The following variables have been deprecated'
-----> Migrating zero downtime env variables to 0.5.x. The following variables have been deprecated
+ dokku_log_info2 'DOKKU_SKIP_ALL_CHECKS DOKKU_SKIP_DEFAULT_CHECKS'
+ declare 'desc=log info2 formatter'
+ echo '=====> DOKKU_SKIP_ALL_CHECKS DOKKU_SKIP_DEFAULT_CHECKS'
=====> DOKKU_SKIP_ALL_CHECKS DOKKU_SKIP_DEFAULT_CHECKS
+ dokku_log_info2 'Please use dokku checks:[disable|enable] <app> to control zero downtime functionality'
+ declare 'desc=log info2 formatter'
+ echo '=====> Please use dokku checks:[disable|enable] <app> to control zero downtime functionality'
=====> Please use dokku checks:[disable|enable] <app> to control zero downtime functionality
+ for app in '$APPS'
++ config_get bronnerbot DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get bronnerbot DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get bronnerbot DOKKU_SKIP_ALL_CHECKS
++ true
+ local APP_SKIP_ALL_CHECKS=
++ config_get bronnerbot DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get bronnerbot DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get bronnerbot DOKKU_SKIP_DEFAULT_CHECKS
++ true
+ local APP_SKIP_DEFAULT_CHECKS=
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get go_test DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get go_test DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get go_test DOKKU_SKIP_ALL_CHECKS
++ true
+ local APP_SKIP_ALL_CHECKS=
++ config_get go_test DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get go_test DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get go_test DOKKU_SKIP_DEFAULT_CHECKS
++ true
+ local APP_SKIP_DEFAULT_CHECKS=
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get itisknown DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get itisknown DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get itisknown DOKKU_SKIP_ALL_CHECKS
++ true
+ local APP_SKIP_ALL_CHECKS=
++ config_get itisknown DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get itisknown DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get itisknown DOKKU_SKIP_DEFAULT_CHECKS
++ true
+ local APP_SKIP_DEFAULT_CHECKS=
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get lfs-server-go DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get lfs-server-go DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get lfs-server-go DOKKU_SKIP_ALL_CHECKS
++ true
+ local APP_SKIP_ALL_CHECKS=
++ config_get lfs-server-go DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get lfs-server-go DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get lfs-server-go DOKKU_SKIP_DEFAULT_CHECKS
++ true
+ local APP_SKIP_DEFAULT_CHECKS=
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get lowdap DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get lowdap DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get lowdap DOKKU_SKIP_ALL_CHECKS
++ true
+ local APP_SKIP_ALL_CHECKS=
++ config_get lowdap DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get lowdap DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get lowdap DOKKU_SKIP_DEFAULT_CHECKS
++ true
+ local APP_SKIP_DEFAULT_CHECKS=
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get p4ktldr DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get p4ktldr DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get p4ktldr DOKKU_SKIP_ALL_CHECKS
++ true
+ local APP_SKIP_ALL_CHECKS=
++ config_get p4ktldr DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get p4ktldr DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get p4ktldr DOKKU_SKIP_DEFAULT_CHECKS
++ true
+ local APP_SKIP_DEFAULT_CHECKS=
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get prichey DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get prichey DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get prichey DOKKU_SKIP_ALL_CHECKS
++ true
+ local APP_SKIP_ALL_CHECKS=
++ config_get prichey DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get prichey DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get prichey DOKKU_SKIP_DEFAULT_CHECKS
++ true
+ local APP_SKIP_DEFAULT_CHECKS=
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get appname DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get appname DOKKU_SKIP_ALL_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get appname DOKKU_SKIP_ALL_CHECKS
++ true
+ local APP_SKIP_ALL_CHECKS=
++ config_get appname DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=get value of given config var'
++ config_sub get appname DOKKU_SKIP_DEFAULT_CHECKS
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get appname DOKKU_SKIP_DEFAULT_CHECKS
++ true
+ local APP_SKIP_DEFAULT_CHECKS=
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ '' == \t\r\u\e ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ dokku_log_info2 'Migration complete'
+ declare 'desc=log info2 formatter'
+ echo '=====> Migration complete'
=====> Migration complete
+ dokku_log_info2 ''
+ declare 'desc=log info2 formatter'
+ echo '=====> '
=====>
+ migrate_checks_vars_0_6_0
+ declare 'desc=migrates CHECKS config variables from 0.5.x to support fully-disabled zero-downtime checks'
++ dokku_apps
++ declare 'desc=prints list of all local apps'
+++ sort
+++ find /home/dokku -follow -maxdepth 1 -mindepth 1 -type d '!' -name tls '!' -name '.*' -printf '%f\n'
++ local 'INSTALLED_APPS=bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname'
++ [[ -n bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname ]]
++ echo 'bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname'
+ local 'APPS=bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname'
+ local app
+ dokku_log_info1 'Migrating zero downtime env variables to 0.6.x. The following variables will be migrated'
+ declare 'desc=log info1 formatter'
+ echo '-----> Migrating zero downtime env variables to 0.6.x. The following variables will be migrated'
-----> Migrating zero downtime env variables to 0.6.x. The following variables will be migrated
+ dokku_log_info2 'DOKKU_CHECKS_ENABLED -> DOKKU_CHECKS_SKIPPED'
+ declare 'desc=log info2 formatter'
+ echo '=====> DOKKU_CHECKS_ENABLED -> DOKKU_CHECKS_SKIPPED'
=====> DOKKU_CHECKS_ENABLED -> DOKKU_CHECKS_SKIPPED
+ for app in '$APPS'
++ config_get bronnerbot DOKKU_CHECKS_ENABLED
++ declare 'desc=get value of given config var'
++ config_sub get bronnerbot DOKKU_CHECKS_ENABLED
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get bronnerbot DOKKU_CHECKS_ENABLED
++ true
+ local APP_DOKKU_CHECKS_ENABLED=
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get go_test DOKKU_CHECKS_ENABLED
++ declare 'desc=get value of given config var'
++ config_sub get go_test DOKKU_CHECKS_ENABLED
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get go_test DOKKU_CHECKS_ENABLED
++ true
+ local APP_DOKKU_CHECKS_ENABLED=
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get itisknown DOKKU_CHECKS_ENABLED
++ declare 'desc=get value of given config var'
++ config_sub get itisknown DOKKU_CHECKS_ENABLED
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get itisknown DOKKU_CHECKS_ENABLED
++ true
+ local APP_DOKKU_CHECKS_ENABLED=
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get lfs-server-go DOKKU_CHECKS_ENABLED
++ declare 'desc=get value of given config var'
++ config_sub get lfs-server-go DOKKU_CHECKS_ENABLED
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get lfs-server-go DOKKU_CHECKS_ENABLED
++ true
+ local APP_DOKKU_CHECKS_ENABLED=
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get lowdap DOKKU_CHECKS_ENABLED
++ declare 'desc=get value of given config var'
++ config_sub get lowdap DOKKU_CHECKS_ENABLED
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get lowdap DOKKU_CHECKS_ENABLED
++ true
+ local APP_DOKKU_CHECKS_ENABLED=
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get p4ktldr DOKKU_CHECKS_ENABLED
++ declare 'desc=get value of given config var'
++ config_sub get p4ktldr DOKKU_CHECKS_ENABLED
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get p4ktldr DOKKU_CHECKS_ENABLED
++ true
+ local APP_DOKKU_CHECKS_ENABLED=
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get prichey DOKKU_CHECKS_ENABLED
++ declare 'desc=get value of given config var'
++ config_sub get prichey DOKKU_CHECKS_ENABLED
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get prichey DOKKU_CHECKS_ENABLED
++ true
+ local APP_DOKKU_CHECKS_ENABLED=
+ [[ -n '' ]]
+ for app in '$APPS'
++ config_get appname DOKKU_CHECKS_ENABLED
++ declare 'desc=get value of given config var'
++ config_sub get appname DOKKU_CHECKS_ENABLED
++ declare 'desc=executes a config subcommand'
++ local name=get
++ shift
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get appname DOKKU_CHECKS_ENABLED
++ true
+ local APP_DOKKU_CHECKS_ENABLED=
+ [[ -n '' ]]
+ dokku_log_info2 'Migration complete'
+ declare 'desc=log info2 formatter'
+ echo '=====> Migration complete'
=====> Migration complete
+ dokku_log_info2 ''
+ declare 'desc=log info2 formatter'
+ echo '=====> '
=====>
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/common
++ config-export common
++ declare 'desc=Export plugin configuration'
++ declare plugin=common
++ toml-export common
++ /usr/bin/plugn ::: toml-export common
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/common/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/config
++ config-export config
++ declare 'desc=Export plugin configuration'
++ declare plugin=config
++ toml-export config
++ /usr/bin/plugn ::: toml-export config
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/config/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/docker-options
++ config-export docker-options
++ declare 'desc=Export plugin configuration'
++ declare plugin=docker-options
++ toml-export docker-options
++ /usr/bin/plugn ::: toml-export docker-options
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/docker-options/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/domains
++ config-export domains
++ declare 'desc=Export plugin configuration'
++ declare plugin=domains
++ toml-export domains
++ /usr/bin/plugn ::: toml-export domains
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/domains/install ]]
+ /var/lib/dokku/core-plugins/enabled/domains/install
+ source /var/lib/dokku/plugins/available/domains/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+ shopt -s nullglob
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/enter
++ config-export enter
++ declare 'desc=Export plugin configuration'
++ declare plugin=enter
++ toml-export enter
++ /usr/bin/plugn ::: toml-export enter
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/enter/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/git
++ config-export git
++ declare 'desc=Export plugin configuration'
++ declare plugin=git
++ toml-export git
++ /usr/bin/plugn ::: toml-export git
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/git/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/logs
++ config-export logs
++ declare 'desc=Export plugin configuration'
++ declare plugin=logs
++ toml-export logs
++ /usr/bin/plugn ::: toml-export logs
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/logs/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/named-containers
++ config-export named-containers
++ declare 'desc=Export plugin configuration'
++ declare plugin=named-containers
++ toml-export named-containers
++ /usr/bin/plugn ::: toml-export named-containers
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/named-containers/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/network
++ config-export network
++ declare 'desc=Export plugin configuration'
++ declare plugin=network
++ toml-export network
++ /usr/bin/plugn ::: toml-export network
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/network/install ]]
+ /var/lib/dokku/core-plugins/enabled/network/install
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/nginx-vhosts
++ config-export nginx-vhosts
++ declare 'desc=Export plugin configuration'
++ declare plugin=nginx-vhosts
++ toml-export nginx-vhosts
++ /usr/bin/plugn ::: toml-export nginx-vhosts
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/nginx-vhosts/install ]]
+ /var/lib/dokku/core-plugins/enabled/nginx-vhosts/install
+ case "$DOKKU_DISTRO" in
+ echo '%dokku ALL=(ALL) NOPASSWD:/etc/init.d/nginx reload, /usr/sbin/nginx -t'
+ chmod 0440 /etc/sudoers.d/dokku-nginx
+ [[ ! -f /etc/nginx/dhparam.pem ]]
+ [[ ! -f /etc/nginx/conf.d/dokku.conf ]]
+ [[ ! -f /etc/nginx/conf.d/server_names_hash_bucket_size.conf ]]
+ gpasswd -a dokku adm
Adding user dokku to group adm
+ chgrp -R adm /var/log/nginx
++ awk -F : '{ print $4 }'
++ egrep '^dokku:' /etc/group
+ gpasswd -M '' dokku
+ [[ -f /etc/logrotate.d/nginx ]]
+ sed -i -e 's/create 0640 www-data dokku/create 0640 www-data adm/g' /etc/logrotate.d/nginx
+ mkdir -p /var/lib/dokku/data/nginx-vhosts/dokku-errors
+ cp /var/lib/dokku/core-plugins/available/nginx-vhosts/templates/400-error.html /var/lib/dokku/data/nginx-vhosts/dokku-errors/400-error.html
+ cp /var/lib/dokku/core-plugins/available/nginx-vhosts/templates/404-error.html /var/lib/dokku/data/nginx-vhosts/dokku-errors/404-error.html
+ cp /var/lib/dokku/core-plugins/available/nginx-vhosts/templates/500-error.html /var/lib/dokku/data/nginx-vhosts/dokku-errors/500-error.html
+ [[ -f /etc/logrotate.d/nginx ]]
+ sed -i -e s/invoke-rc.d/service/g /etc/logrotate.d/nginx
+ case "$DOKKU_DISTRO" in
+ NGINX_INIT=/etc/init.d/nginx
+ /etc/init.d/nginx start
[....] Starting nginx (via systemctl): nginx.service[?25l7[ ok 8[?12l[?25h.
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/plugin
++ config-export plugin
++ declare 'desc=Export plugin configuration'
++ declare plugin=plugin
++ toml-export plugin
++ /usr/bin/plugn ::: toml-export plugin
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/plugin/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/proxy
++ config-export proxy
++ declare 'desc=Export plugin configuration'
++ declare plugin=proxy
++ toml-export proxy
++ /usr/bin/plugn ::: toml-export proxy
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/proxy/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/ps
++ config-export ps
++ declare 'desc=Export plugin configuration'
++ declare plugin=ps
++ toml-export ps
++ /usr/bin/plugn ::: toml-export ps
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/ps/install ]]
+ /var/lib/dokku/core-plugins/enabled/ps/install
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ source /var/lib/dokku/plugins/available/docker-options/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ AVAILABLE_PHASES=(build deploy run)
+ source /var/lib/dokku/plugins/available/ps/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ source /var/lib/dokku/plugins/available/config/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
+ set_default_restart_policies
+ declare 'desc=set the default restart policy for all applications if there is not one already set'
++ dokku_apps
++ declare 'desc=prints list of all local apps'
+++ sort
+++ find /home/dokku -follow -maxdepth 1 -mindepth 1 -type d '!' -name tls '!' -name '.*' -printf '%f\n'
++ local 'INSTALLED_APPS=bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname'
++ [[ -n bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname ]]
++ echo 'bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname'
+ local 'APPS=bronnerbot
go_test
itisknown
lfs-server-go
lowdap
p4ktldr
prichey
appname'
+ local APP
+ for APP in '$APPS'
+++ get_phase_file_path deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local phase_file_prefix=DOCKER_OPTIONS_
+++ local phase=deploy
+++ [[ -n bronnerbot ]]
+++ [[ -n deploy ]]
+++ fn-get-phase-file-path bronnerbot deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local APP=bronnerbot PHASE=deploy
+++ local PHASE_FILE=/home/dokku/bronnerbot/DOCKER_OPTIONS_DEPLOY
+++ echo /home/dokku/bronnerbot/DOCKER_OPTIONS_DEPLOY
++ get_restart_policies /home/dokku/bronnerbot/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints restart policies'
++ local -r phase_file_path=/home/dokku/bronnerbot/DOCKER_OPTIONS_DEPLOY
++ sed -e 's/^--restart=//g'
++ get_raw_restart_policies /home/dokku/bronnerbot/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints raw restart policies'
++ local -r phase_file_path=/home/dokku/bronnerbot/DOCKER_OPTIONS_DEPLOY
++ [[ -r /home/dokku/bronnerbot/DOCKER_OPTIONS_DEPLOY ]]
++ sed -e '/^--restart=/!d'
+ local RESTART_POLICIES=on-failure:10
+ [[ -z on-failure:10 ]]
+ for APP in '$APPS'
+++ get_phase_file_path deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local phase_file_prefix=DOCKER_OPTIONS_
+++ local phase=deploy
+++ [[ -n go_test ]]
+++ [[ -n deploy ]]
+++ fn-get-phase-file-path go_test deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local APP=go_test PHASE=deploy
+++ local PHASE_FILE=/home/dokku/go_test/DOCKER_OPTIONS_DEPLOY
+++ echo /home/dokku/go_test/DOCKER_OPTIONS_DEPLOY
++ get_restart_policies /home/dokku/go_test/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints restart policies'
++ local -r phase_file_path=/home/dokku/go_test/DOCKER_OPTIONS_DEPLOY
++ sed -e 's/^--restart=//g'
++ get_raw_restart_policies /home/dokku/go_test/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints raw restart policies'
++ local -r phase_file_path=/home/dokku/go_test/DOCKER_OPTIONS_DEPLOY
++ [[ -r /home/dokku/go_test/DOCKER_OPTIONS_DEPLOY ]]
++ sed -e '/^--restart=/!d'
+ local RESTART_POLICIES=on-failure:10
+ [[ -z on-failure:10 ]]
+ for APP in '$APPS'
+++ get_phase_file_path deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local phase_file_prefix=DOCKER_OPTIONS_
+++ local phase=deploy
+++ [[ -n itisknown ]]
+++ [[ -n deploy ]]
+++ fn-get-phase-file-path itisknown deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local APP=itisknown PHASE=deploy
+++ local PHASE_FILE=/home/dokku/itisknown/DOCKER_OPTIONS_DEPLOY
+++ echo /home/dokku/itisknown/DOCKER_OPTIONS_DEPLOY
++ get_restart_policies /home/dokku/itisknown/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints restart policies'
++ local -r phase_file_path=/home/dokku/itisknown/DOCKER_OPTIONS_DEPLOY
++ sed -e 's/^--restart=//g'
++ get_raw_restart_policies /home/dokku/itisknown/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints raw restart policies'
++ local -r phase_file_path=/home/dokku/itisknown/DOCKER_OPTIONS_DEPLOY
++ [[ -r /home/dokku/itisknown/DOCKER_OPTIONS_DEPLOY ]]
++ sed -e '/^--restart=/!d'
+ local RESTART_POLICIES=on-failure:10
+ [[ -z on-failure:10 ]]
+ for APP in '$APPS'
+++ get_phase_file_path deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local phase_file_prefix=DOCKER_OPTIONS_
+++ local phase=deploy
+++ [[ -n lfs-server-go ]]
+++ [[ -n deploy ]]
+++ fn-get-phase-file-path lfs-server-go deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local APP=lfs-server-go PHASE=deploy
+++ local PHASE_FILE=/home/dokku/lfs-server-go/DOCKER_OPTIONS_DEPLOY
+++ echo /home/dokku/lfs-server-go/DOCKER_OPTIONS_DEPLOY
++ get_restart_policies /home/dokku/lfs-server-go/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints restart policies'
++ local -r phase_file_path=/home/dokku/lfs-server-go/DOCKER_OPTIONS_DEPLOY
++ sed -e 's/^--restart=//g'
++ get_raw_restart_policies /home/dokku/lfs-server-go/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints raw restart policies'
++ local -r phase_file_path=/home/dokku/lfs-server-go/DOCKER_OPTIONS_DEPLOY
++ [[ -r /home/dokku/lfs-server-go/DOCKER_OPTIONS_DEPLOY ]]
++ sed -e '/^--restart=/!d'
+ local RESTART_POLICIES=on-failure:10
+ [[ -z on-failure:10 ]]
+ for APP in '$APPS'
+++ get_phase_file_path deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local phase_file_prefix=DOCKER_OPTIONS_
+++ local phase=deploy
+++ [[ -n lowdap ]]
+++ [[ -n deploy ]]
+++ fn-get-phase-file-path lowdap deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local APP=lowdap PHASE=deploy
+++ local PHASE_FILE=/home/dokku/lowdap/DOCKER_OPTIONS_DEPLOY
+++ echo /home/dokku/lowdap/DOCKER_OPTIONS_DEPLOY
++ get_restart_policies /home/dokku/lowdap/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints restart policies'
++ local -r phase_file_path=/home/dokku/lowdap/DOCKER_OPTIONS_DEPLOY
++ sed -e 's/^--restart=//g'
++ get_raw_restart_policies /home/dokku/lowdap/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints raw restart policies'
++ local -r phase_file_path=/home/dokku/lowdap/DOCKER_OPTIONS_DEPLOY
++ [[ -r /home/dokku/lowdap/DOCKER_OPTIONS_DEPLOY ]]
++ sed -e '/^--restart=/!d'
+ local RESTART_POLICIES=on-failure:10
+ [[ -z on-failure:10 ]]
+ for APP in '$APPS'
+++ get_phase_file_path deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local phase_file_prefix=DOCKER_OPTIONS_
+++ local phase=deploy
+++ [[ -n p4ktldr ]]
+++ [[ -n deploy ]]
+++ fn-get-phase-file-path p4ktldr deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local APP=p4ktldr PHASE=deploy
+++ local PHASE_FILE=/home/dokku/p4ktldr/DOCKER_OPTIONS_DEPLOY
+++ echo /home/dokku/p4ktldr/DOCKER_OPTIONS_DEPLOY
++ get_restart_policies /home/dokku/p4ktldr/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints restart policies'
++ local -r phase_file_path=/home/dokku/p4ktldr/DOCKER_OPTIONS_DEPLOY
++ sed -e 's/^--restart=//g'
++ get_raw_restart_policies /home/dokku/p4ktldr/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints raw restart policies'
++ local -r phase_file_path=/home/dokku/p4ktldr/DOCKER_OPTIONS_DEPLOY
++ [[ -r /home/dokku/p4ktldr/DOCKER_OPTIONS_DEPLOY ]]
++ sed -e '/^--restart=/!d'
+ local RESTART_POLICIES=on-failure:10
+ [[ -z on-failure:10 ]]
+ for APP in '$APPS'
+++ get_phase_file_path deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local phase_file_prefix=DOCKER_OPTIONS_
+++ local phase=deploy
+++ [[ -n prichey ]]
+++ [[ -n deploy ]]
+++ fn-get-phase-file-path prichey deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local APP=prichey PHASE=deploy
+++ local PHASE_FILE=/home/dokku/prichey/DOCKER_OPTIONS_DEPLOY
+++ echo /home/dokku/prichey/DOCKER_OPTIONS_DEPLOY
++ get_restart_policies /home/dokku/prichey/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints restart policies'
++ local -r phase_file_path=/home/dokku/prichey/DOCKER_OPTIONS_DEPLOY
++ sed -e 's/^--restart=//g'
++ get_raw_restart_policies /home/dokku/prichey/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints raw restart policies'
++ local -r phase_file_path=/home/dokku/prichey/DOCKER_OPTIONS_DEPLOY
++ [[ -r /home/dokku/prichey/DOCKER_OPTIONS_DEPLOY ]]
++ sed -e '/^--restart=/!d'
+ local RESTART_POLICIES=on-failure:10
+ [[ -z on-failure:10 ]]
+ for APP in '$APPS'
+++ get_phase_file_path deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local phase_file_prefix=DOCKER_OPTIONS_
+++ local phase=deploy
+++ [[ -n appname ]]
+++ [[ -n deploy ]]
+++ fn-get-phase-file-path appname deploy
+++ declare 'desc=return docker-options config file path for specified phase'
+++ local APP=appname PHASE=deploy
+++ local PHASE_FILE=/home/dokku/appname/DOCKER_OPTIONS_DEPLOY
+++ echo /home/dokku/appname/DOCKER_OPTIONS_DEPLOY
++ get_restart_policies /home/dokku/appname/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints restart policies'
++ local -r phase_file_path=/home/dokku/appname/DOCKER_OPTIONS_DEPLOY
++ sed -e 's/^--restart=//g'
++ get_raw_restart_policies /home/dokku/appname/DOCKER_OPTIONS_DEPLOY
++ declare 'desc=strips docker options and prints raw restart policies'
++ local -r phase_file_path=/home/dokku/appname/DOCKER_OPTIONS_DEPLOY
++ [[ -r /home/dokku/appname/DOCKER_OPTIONS_DEPLOY ]]
++ sed -e '/^--restart=/!d'
+ local RESTART_POLICIES=on-failure:10
+ [[ -z on-failure:10 ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/repo
++ config-export repo
++ declare 'desc=Export plugin configuration'
++ declare plugin=repo
++ toml-export repo
++ /usr/bin/plugn ::: toml-export repo
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/repo/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/shell
++ config-export shell
++ declare 'desc=Export plugin configuration'
++ declare plugin=shell
++ toml-export shell
++ /usr/bin/plugn ::: toml-export shell
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/shell/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/ssh-keys
++ config-export ssh-keys
++ declare 'desc=Export plugin configuration'
++ declare plugin=ssh-keys
++ toml-export ssh-keys
++ /usr/bin/plugn ::: toml-export ssh-keys
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/ssh-keys/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/storage
++ config-export storage
++ declare 'desc=Export plugin configuration'
++ declare plugin=storage
++ toml-export storage
++ /usr/bin/plugn ::: toml-export storage
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/storage/install ]]
+ /var/lib/dokku/core-plugins/enabled/storage/install
+ mkdir -p /var/lib/dokku/data/storage
+ chown dokku:dokku /var/lib/dokku/data/storage
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/tags
++ config-export tags
++ declare 'desc=Export plugin configuration'
++ declare plugin=tags
++ toml-export tags
++ /usr/bin/plugn ::: toml-export tags
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/tags/install ]]
+ for plugin in '$PLUGIN_PATH/enabled/*'
+++ basename /var/lib/dokku/core-plugins/enabled/tar
++ config-export tar
++ declare 'desc=Export plugin configuration'
++ declare plugin=tar
++ toml-export tar
++ /usr/bin/plugn ::: toml-export tar
++ cat /var/lib/dokku/core-plugins/config.toml
+ eval ''
+ [[ -x /var/lib/dokku/core-plugins/enabled/tar/install ]]
+ shopt -u nullglob
+ trigger-gateway install
+ /usr/bin/plugn ::: trigger-gateway install
+ implemented=1
+ [[ 1 -eq 0 ]]
+ [[ 1 -eq 0 ]]
+ rm -f /home/dokku/VERSION
+ cp /var/lib/dokku/STABLE_VERSION /home/dokku/VERSION
+ [[ -f /etc/nginx/conf.d/dokku-installer.conf ]]
+ db_get dokku/web_config
+ _db_cmd 'GET dokku/web_config'
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GET dokku/web_config'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=false
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' false = true ']'
+ '[' -f /home/dokku/VHOST ']'
+ echo 'VHOST file detected, skipping modification'
VHOST file detected, skipping modification
+ db_get dokku/hostname
+ _db_cmd 'GET dokku/hostname'
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GET dokku/hostname'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=prichey.net
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ echo prichey.net
+ '[' -z '' ']'
+ db_get dokku/key_file
+ _db_cmd 'GET dokku/key_file'
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GET dokku/key_file'
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=/root/.ssh/id_rsa.pub
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' -f /root/.ssh/id_rsa.pub ']'
+ db_stop
+ echo STOP
+ exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment