Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The SSOwat configuration has been generated
- Remove the user wordpress
- + sudo userdel wordpress
- + echo 'Remove the user wordpress'
- + getent passwd wordpress
- + ynh_system_user_exists wordpress
- + ynh_system_user_delete wordpress
- + sudo systemctl restart fail2ban
- + sudo rm -R /etc/fail2ban/filter.d/wordpress.conf
- + '[' -e /etc/fail2ban/filter.d/wordpress.conf ']'
- + [[ f = \/ ]]
- + [[ /etc/fail2ban/filter.d/wordpress.conf =~ ^/[[:alnum:]]+$ ]]
- + [[ /var/www /home/yunohost.app =~ /etc/fail2ban/filter\.d/wordpress\.conf ]]
- + local 'forbidden_path= /var/www /home/yunohost.app'
- + local path_to_remove=/etc/fail2ban/filter.d/wordpress.conf
- + ynh_secure_remove /etc/fail2ban/filter.d/wordpress.conf
- + sudo rm -R /etc/fail2ban/jail.d/wordpress.conf
- + '[' -e /etc/fail2ban/jail.d/wordpress.conf ']'
- + [[ f = \/ ]]
- + [[ /etc/fail2ban/jail.d/wordpress.conf =~ ^/[[:alnum:]]+$ ]]
- + [[ /var/www /home/yunohost.app =~ /etc/fail2ban/jail\.d/wordpress\.conf ]]
- + local 'forbidden_path= /var/www /home/yunohost.app'
- + local path_to_remove=/etc/fail2ban/jail.d/wordpress.conf
- + ynh_secure_remove /etc/fail2ban/jail.d/wordpress.conf
- + ynh_remove_fail2ban_config
- + sudo systemctl reload php5-fpm
- + sudo rm -R /etc/php5/fpm/conf.d/20-wordpress.ini
- + '[' -e /etc/php5/fpm/conf.d/20-wordpress.ini ']'
- + [[ i = \/ ]]
- + [[ /etc/php5/fpm/conf.d/20-wordpress.ini =~ ^/[[:alnum:]]+$ ]]
- + [[ /var/www /home/yunohost.app =~ /etc/php5/fpm/conf\.d/20-wordpress\.ini ]]
- + local 'forbidden_path= /var/www /home/yunohost.app'
- + local path_to_remove=/etc/php5/fpm/conf.d/20-wordpress.ini
- + ynh_secure_remove /etc/php5/fpm/conf.d/20-wordpress.ini
- + sudo rm -R /etc/php5/fpm/pool.d/wordpress.conf
- + '[' -e /etc/php5/fpm/pool.d/wordpress.conf ']'
- + [[ f = \/ ]]
- + [[ /etc/php5/fpm/pool.d/wordpress.conf =~ ^/[[:alnum:]]+$ ]]
- + [[ /var/www /home/yunohost.app =~ /etc/php5/fpm/pool\.d/wordpress\.conf ]]
- + local 'forbidden_path= /var/www /home/yunohost.app'
- + local path_to_remove=/etc/php5/fpm/pool.d/wordpress.conf
- + ynh_secure_remove /etc/php5/fpm/pool.d/wordpress.conf
- + ynh_remove_fpm_config
- + sudo systemctl reload nginx
- + sudo rm -R /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + '[' -e /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf ']'
- + [[ f = \/ ]]
- + [[ /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf =~ ^/[[:alnum:]]+$ ]]
- + [[ /var/www /home/yunohost.app =~ /etc/nginx/conf\.d/testyzcesty\.tk\.d/wordpress\.conf ]]
- + local 'forbidden_path= /var/www /home/yunohost.app'
- + local path_to_remove=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + ynh_secure_remove /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + ynh_remove_nginx_config
- + sudo rm -R /var/www/wordpress
- + '[' -e /var/www/wordpress ']'
- + [[ s = \/ ]]
- + [[ /var/www/wordpress =~ ^/[[:alnum:]]+$ ]]
- + [[ /var/www /home/yunohost.app =~ /var/www/wordpress ]]
- + local 'forbidden_path= /var/www /home/yunohost.app'
- + local path_to_remove=/var/www/wordpress
- + ynh_secure_remove /var/www/wordpress
- + mysql -u root --password=LEpZvLqCJ0 -B ''
- + ynh_mysql_connect_as root LEpZvLqCJ0 ''
- ++ sudo cat /etc/yunohost/mysql
- + ynh_mysql_execute_as_root 'DROP USER '\''wordpress'\''@'\''localhost'\'';'
- + ynh_mysql_drop_user wordpress
- ++ return 0
- wordpress ]]
- ++ [[ -z User
- +++ mysql -u root --password=LEpZvLqCJ0 -B ''
- +++ ynh_mysql_connect_as root LEpZvLqCJ0 ''
- ++++ sudo cat /etc/yunohost/mysql
- +++ ynh_mysql_execute_as_root 'SELECT User from mysql.user WHERE User = '\''wordpress'\'';'
- ++ local user=wordpress
- ++ ynh_mysql_user_exists wordpress
- + mysql -u root --password=LEpZvLqCJ0 -B ''
- + ynh_mysql_connect_as root LEpZvLqCJ0 ''
- ++ sudo cat /etc/yunohost/mysql
- Removing database wordpress
- + ynh_mysql_execute_as_root 'DROP DATABASE wordpress;'
- + ynh_mysql_drop_db wordpress
- + echo 'Removing database wordpress'
- + mysqlshow -u root -pLEpZvLqCJ0
- + grep -q '^| wordpress'
- + local mysql_root_password=LEpZvLqCJ0
- ++ sudo cat /etc/yunohost/mysql
- + local db_name=wordpress
- + local db_user=wordpress
- + ynh_mysql_remove_db wordpress wordpress
- Removing wordpress-ynh-deps (4.9.1~ynh1) ...
- (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 ... 53758 files and directories currently installed.)
- 3 files changed, 6 insertions(+), 4 deletions(-)
- [master c490397] saving uncommitted changes in /etc prior to apt run
- + sudo apt-get -y -qq autoremove --purge wordpress-ynh-deps
- + DEBIAN_FRONTEND=noninteractive
- + ynh_apt autoremove --purge wordpress-ynh-deps
- + ynh_package_autopurge wordpress-ynh-deps
- + local dep_app=wordpress
- + ynh_remove_app_dependencies
- + db_name=wordpress
- ++ sudo yunohost app setting wordpress db_name --output-as plain --quiet
- ++ ynh_app_setting_get wordpress db_name
- + domain=testyzcesty.tk
- ++ sudo yunohost app setting wordpress domain --output-as plain --quiet
- ++ ynh_app_setting_get wordpress domain
- + app=wordpress
- ++ . /usr/share/yunohost/helpers.d/utils
- ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/user
- ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/system
- ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/string
- ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/setting
- ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/print
- ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/package
- ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/network
- ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
- ++ . /usr/share/yunohost/helpers.d/mysql
- ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/ip
- ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- +++ CAN_BIND=1
- ++ . /usr/share/yunohost/helpers.d/filesystem
- ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/backend
- ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- +++ run-parts --list /usr/share/yunohost/helpers.d
- + source /usr/share/yunohost/helpers
- + source _common.sh
- Executing script '/var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/remove'...
- !!
- wordpress's script has encountered an error. Its execution was cancelled.
- !!
- _common.sh: line 214: echo: write error: Broken pipe
- _common.sh: line 214: mail: command not found
- + exit 1
- + echo ''
- + ynh_die
- + type -t ynh_clean_setup
- + echo -e '!!\n wordpress'\''s script has encountered an error. Its execution was cancelled.\n!!'
- + set +eu
- + trap '' EXIT
- + '[' 127 -eq 0 ']'
- + local exit_code=127
- + ynh_exit_properly
- - nginx: configuration file /etc/nginx/nginx.conf test is successful'
- - nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
- nginx:
- swap: 1.9GiB (1.8GiB free)
- ram: 996.8MiB (367.5MiB free)
- memory:
- sda1: Mounted on /boot, 461.0MiB (407.1MiB free)
- dm-0: Mounted on /, 17.3GiB (13.6GiB free)
- disks:
- system:
- backports:
- version: 2.7.7
- repo: stable
- ssowat:
- version: 2.7.7
- repo: stable
- moulinette:
- version: 2.7.7
- repo: stable
- yunohost-admin:
- version: 2.7.10
- repo: stable
- yunohost:
- packages:
- kernel: 3.16.0-5-amd64
- host: Debian 8.10
- Automatic diagnosis data from YunoHost
- ---
- If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/wordpress_ynh
- Specific information for the application wordpress.
- + echo 'This is an automated message from your beloved YunoHost server.
- + mail -a 'Content-Type: text/plain; charset=UTF-8' -s '☁️🆈🅽🅷☁️: `wordpress` was just installed!' ' touvr@testyzcesty.tk'
- - nginx: configuration file /etc/nginx/nginx.conf test is successful'
- - nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
- nginx:
- swap: 1.9GiB (1.8GiB free)
- ram: 996.8MiB (367.5MiB free)
- memory:
- sda1: Mounted on /boot, 461.0MiB (407.1MiB free)
- dm-0: Mounted on /, 17.3GiB (13.6GiB free)
- disks:
- system:
- backports:
- version: 2.7.7
- repo: stable
- ssowat:
- version: 2.7.7
- repo: stable
- moulinette:
- version: 2.7.7
- repo: stable
- yunohost-admin:
- version: 2.7.10
- repo: stable
- yunohost:
- packages:
- kernel: 3.16.0-5-amd64
- host: Debian 8.10
- Automatic diagnosis data from YunoHost
- ---
- If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/wordpress_ynh
- Specific information for the application wordpress.
- + local 'mail_message=This is an automated message from your beloved YunoHost server.
- ++ yunohost tools diagnosis
- ++ grep -B 100 services:
- ++ sed /services:/d
- + local 'mail_subject=☁️🆈🅽🅷☁️: `wordpress` was just installed!'
- + recipients=' touvr@testyzcesty.tk'
- ++ echo ' touvr@testyzcesty.tk'
- ++ recipients=' touvr@testyzcesty.tk'
- ++ mail=touvr@testyzcesty.tk
- +++ return
- +++ [[ #fullname =~ ^#[^#] ]]
- +++ [[ 1 == \1 ]]
- +++ read line
- +++ echo touvr@testyzcesty.tk
- +++ [[ touvr@testyzcesty.tk =~ ^#[^#] ]]
- +++ [[ 1 == \1 ]]
- +++ read line
- +++ founded=1
- +++ [[ -n '' ]]
- +++ [[ #mail =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ postmaster@testyzcesty.tk =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ webmaster@testyzcesty.tk =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ admin@testyzcesty.tk =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ root@testyzcesty.tk =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ #mail-aliases =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ No quota =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ ##limit =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ 3.0K =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ ##use =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ #mailbox-quota =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ Dvorak =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ #lastname =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ Krystof =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ #firstname =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ touvr =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ [[ #username =~ ^#mail$ ]]
- +++ [[ 0 == \1 ]]
- +++ read line
- +++ shift
- +++ local key=mail
- +++ local founded=0
- +++ local prefix=#
- +++ sudo yunohost user info touvr --output-as plain
- +++ ynh_get_plain_key mail
- +++ ynh_user_get_info touvr mail
- ++ grep --quiet @
- ++ echo touvr
- ++ '[' touvr = root ']'
- ++ for mail in '$list_mails'
- ++ local 'recipients= '
- ++ local mail
- ++ local list_mails=touvr
- ++ find_mails touvr
- + local recipients=touvr
- + local 'app_message=If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/wordpress_ynh'
- + ynh_send_readme_to_admin 'If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/wordpress_ynh' touvr
- + message='If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/wordpress_ynh'
- + sudo rm -R /var/www/wordpress/wp-cli.phar
- + '[' -e /var/www/wordpress/wp-cli.phar ']'
- + [[ r = \/ ]]
- + [[ /var/www/wordpress/wp-cli.phar =~ ^/[[:alnum:]]+$ ]]
- + [[ /var/www /home/yunohost.app =~ /var/www/wordpress/wp-cli\.phar ]]
- + local 'forbidden_path= /var/www /home/yunohost.app'
- + local path_to_remove=/var/www/wordpress/wp-cli.phar
- + ynh_secure_remove /var/www/wordpress/wp-cli.phar
- + systemctl reload nginx
- + '[' 1 -eq 0 ']'
- + '[' -n '' ']'
- + local fail2ban_error=
- ++ journalctl -u fail2ban
- ++ tail -n50
- ++ grep 'WARNING.*wordpress.*'
- + systemctl restart fail2ban
- + sudo yunohost app setting wordpress checksum__etc_fail2ban_filter.d_wordpress.conf --value=ba4022def5688325f93e3a09d2dbe89d --quiet
- + ynh_app_setting_set wordpress checksum__etc_fail2ban_filter.d_wordpress.conf ba4022def5688325f93e3a09d2dbe89d
- ++ sudo md5sum /etc/fail2ban/filter.d/wordpress.conf
- ++ cut '-d ' -f1
- + local checksum_setting_name=checksum__etc_fail2ban_filter.d_wordpress.conf
- + ynh_store_file_checksum /etc/fail2ban/filter.d/wordpress.conf
- + sudo yunohost app setting wordpress checksum__etc_fail2ban_jail.d_wordpress.conf --value=fd860149809c226fe042388ed59c4e96 --quiet
- + ynh_app_setting_set wordpress checksum__etc_fail2ban_jail.d_wordpress.conf fd860149809c226fe042388ed59c4e96
- ++ sudo md5sum /etc/fail2ban/jail.d/wordpress.conf
- ++ cut '-d ' -f1
- + local checksum_setting_name=checksum__etc_fail2ban_jail.d_wordpress.conf
- + ynh_store_file_checksum /etc/fail2ban/jail.d/wordpress.conf
- ignoreregex =
- failregex = Authentication (attempt for unknown user|failure for) .* from
- [Definition]
- before = common.conf
- [INCLUDES]
- + sudo tee /etc/fail2ban/filter.d/wordpress.conf
- maxretry = 5
- logpath = /var/log/auth.log
- filter = wordpress
- port = http,https
- enabled = true
- [wordpress]
- + sudo tee /etc/fail2ban/jail.d/wordpress.conf
- + '[' -n '' ']'
- + local checksum_value=
- ++ sudo yunohost app setting wordpress checksum__etc_fail2ban_filter.d_wordpress.conf --output-as plain --quiet
- ++ ynh_app_setting_get wordpress checksum__etc_fail2ban_filter.d_wordpress.conf
- + local checksum_setting_name=checksum__etc_fail2ban_filter.d_wordpress.conf
- + local file=/etc/fail2ban/filter.d/wordpress.conf
- + ynh_backup_if_checksum_is_different /etc/fail2ban/filter.d/wordpress.conf 1
- + '[' -n '' ']'
- + local checksum_value=
- ++ sudo yunohost app setting wordpress checksum__etc_fail2ban_jail.d_wordpress.conf --output-as plain --quiet
- ++ ynh_app_setting_get wordpress checksum__etc_fail2ban_jail.d_wordpress.conf
- + local checksum_setting_name=checksum__etc_fail2ban_jail.d_wordpress.conf
- + local file=/etc/fail2ban/jail.d/wordpress.conf
- + ynh_backup_if_checksum_is_different /etc/fail2ban/jail.d/wordpress.conf 1
- + finalfail2banfilterconf=/etc/fail2ban/filter.d/wordpress.conf
- + finalfail2banjailconf=/etc/fail2ban/jail.d/wordpress.conf
- + test -n 'Authentication (attempt for unknown user|failure for) .* from '
- + test -n /var/log/auth.log
- + ports=http,https
- + max_retry=5
- + failregex='Authentication (attempt for unknown user|failure for) .* from '
- + logpath=/var/log/auth.log
- + ynh_add_fail2ban_config /var/log/auth.log 'Authentication (attempt for unknown user|failure for) .* from ' 5
- + chown root: /var/www/wordpress/wp-config.php
- + chown -R wordpress: /var/www/wordpress
- + sudo yunohost app setting wordpress checksum__var_www_wordpress_wp-config.php --value=27e7657d2947306edd13f6013c6010bf --quiet
- + ynh_app_setting_set wordpress checksum__var_www_wordpress_wp-config.php 27e7657d2947306edd13f6013c6010bf
- ++ sudo md5sum /var/www/wordpress/wp-config.php
- ++ cut '-d ' -f1
- + local checksum_setting_name=checksum__var_www_wordpress_wp-config.php
- + ynh_store_file_checksum /var/www/wordpress/wp-config.php
- Success: Activated 1 of 1 plugins.
- Plugin 'wp-fail2ban' activated.
- + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin activate wp-fail2ban
- Success: Activated 1 of 1 plugins.
- Plugin 'companion-auto-update' activated.
- + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin activate companion-auto-update
- Success: Activated 1 of 1 plugins.
- Plugin 'simple-ldap-login' activated.
- + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin activate simple-ldap-login
- + plugin_network=
- + mysql -u wordpress --password=Q7rE7pggrvzQ1ZwyirQ3LgzD -B wordpress
- + ynh_mysql_connect_as wordpress Q7rE7pggrvzQ1ZwyirQ3LgzD wordpress
- + '[' 0 -eq 1 ']'
- Success: Language activated.
- + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress core language activate en_US
- Warning: Language 'en_US' already installed.
- + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress core language install en_US
- Success: Installed 1 of 1 plugins.
- Plugin installed successfully.
- Installing the plugin...
- Unpacking the package...
- Using cached file '/.wp-cli/cache/plugin/wp-fail2ban-3.5.3.zip'...
- Downloading installation package from https://downloads.wordpress.org/plugin/wp-fail2ban.3.5.3.zip...
- Installing WP fail2ban (3.5.3)
- + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin install wp-fail2ban
- Success: Installed 1 of 1 plugins.
- Plugin installed successfully.
- Installing the plugin...
- Unpacking the package...
- Using cached file '/.wp-cli/cache/plugin/companion-auto-update-3.0.7.zip'...
- Downloading installation package from https://downloads.wordpress.org/plugin/companion-auto-update.3.0.7.zip...
- Installing Companion Auto Update (3.0.7)
- + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin install companion-auto-update
- Success: Installed 1 of 1 plugins.
- Plugin installed successfully.
- Installing the plugin...
- Unpacking the package...
- Using cached file '/.wp-cli/cache/plugin/http-authentication-4.5.zip'...
- Downloading installation package from https://downloads.wordpress.org/plugin/http-authentication.4.5.zip...
- Installing HTTP Authentication (4.5)
- + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin install http-authentication
- Success: Installed 1 of 1 plugins.
- Plugin installed successfully.
- Installing the plugin...
- Unpacking the package...
- Using cached file '/.wp-cli/cache/plugin/simple-ldap-login-1.6.0.zip'...
- Downloading installation package from https://downloads.wordpress.org/plugin/simple-ldap-login.1.6.0.zip...
- Installing Simple LDAP Login (1.6.0)
- + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin install simple-ldap-login
- + wpcli_alias='php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress'
- 2018-03-19 23:47:08 URL:https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar [4561899/4561899] -> "/var/www/wordpress/wp-cli.phar" [1]
- Please wait during Wordpress installation
- + wget -nv https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /var/www/wordpress/wp-cli.phar
- + echo
- + WARNING echo ''
- + break
- + grep -q wp_options
- + mysql -u wordpress --password=Q7rE7pggrvzQ1ZwyirQ3LgzD -B wordpress
- + ynh_mysql_connect_as wordpress Q7rE7pggrvzQ1ZwyirQ3LgzD wordpress
- + for i in '`seq 1 300`'
- ++ seq 1 300
- + echo -n Please wait during Wordpress installation
- + WARNING echo -n 'Please wait during Wordpress installation'
- } );
- $( '.hide-if-no-js' ).removeClass( 'hide-if-no-js' );
- jQuery( function( $ ) {
- /* ]]> */
- var userProfileL10n = {"warn":"Your new password has not been saved.","warnWeak":"Confirm use of weak password","show":"Show","hide":"Hide","cancel":"Cancel","ariaShow":"Show password","ariaHide":"Hide password"};
- /*
- /* ]]> */
- var _wpUtilSettings = {"ajax":{"url":"\/wp\/wp-admin\/admin-ajax.php"}};
- /*
- /* ]]> */
- var pwsL10n = {"unknown":"Password strength unknown","short":"Very weak","bad":"Weak","good":"Medium","strong":"Strong","mismatch":"Mismatch"};
- /*
- /* ]]> */
- var _zxcvbnSettings = {"src":"https:\/\/testyzcesty.tk\/wp\/wp-includes\/js\/zxcvbn.min.js"};
- /*
- Log In
- Your chosen password.
- Password
- touvr
- Username
- WordPress has been installed. Thank you, and enjoy!
- Success!
- WordPress
- + curl --silent --show-error -kL -H 'Host: testyzcesty.tk' --resolve testyzcesty.tk:443:127.0.0.1 --data '&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_email=touvr@testyzcesty.tk&Submit=Install+WordPress' 'https://localhost/wp/wp-admin/install.php?step=2'
- + POST_data='--data &weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_email=touvr@testyzcesty.tk&Submit=Install+WordPress'
- + '[' -n '&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_email=touvr@testyzcesty.tk&Submit=Install+WordPress&' ']'
- + POST_data='&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_email=touvr@testyzcesty.tk&Submit=Install+WordPress&'
- + for arg in '"${@:2}"'
- + POST_data='&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_email=touvr@testyzcesty.tk&'
- + for arg in '"${@:2}"'
- + POST_data='&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&'
- + for arg in '"${@:2}"'
- + POST_data='&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&'
- + for arg in '"${@:2}"'
- + POST_data='&weblog_title=YunoBlog&user_name=touvr&'
- + for arg in '"${@:2}"'
- + POST_data='&weblog_title=YunoBlog&'
- + for arg in '"${@:2}"'
- + local arg=
- + local POST_data=
- + local 'full_page_url=https://localhost/wp/wp-admin/install.php?step=2'
- + ynh_local_curl '/wp-admin/install.php?step=2' '&weblog_title=YunoBlog' user_name=touvr admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD admin_email=touvr@testyzcesty.tk Submit=Install+WordPress
- + systemctl reload nginx
- The SSOwat configuration has been generated
- + yunohost app ssowatconf
- + sudo yunohost app setting wordpress unprotected_uris --value=/ --quiet
- + ynh_app_setting_set wordpress unprotected_uris /
- + chown -R wordpress: /var/www/wordpress
- + sudo sed --in-place 's@KEY8@7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj@g' /var/www/wordpress/wp-config.php
- + replace_string='7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj'
- + match_string=KEY8
- + local workfile=/var/www/wordpress/wp-config.php
- + local 'replace_string=7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj'
- + local match_string=KEY8
- + local delimit=@
- + ynh_replace_string KEY8 '7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj' /var/www/wordpress/wp-config.php
- + '[' '7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj' = '' ']'
- + j='7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj'
- ++ dd if=/dev/urandom bs=1 count=200
- ++ tr -c -d '[A-Za-z0-9]'
- ++ sed -n 's/\(.\{40\}\).*/\1/p'
- + for i in 1 2 3 4 5 6 7 8
- + sudo sed --in-place 's@KEY7@muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU@g' /var/www/wordpress/wp-config.php
- + replace_string='muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU'
- + match_string=KEY7
- + local workfile=/var/www/wordpress/wp-config.php
- + local 'replace_string=muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU'
- + local match_string=KEY7
- + local delimit=@
- + ynh_replace_string KEY7 'muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU' /var/www/wordpress/wp-config.php
- + '[' 'muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU' = '' ']'
- + j='muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU'
- ++ dd if=/dev/urandom bs=1 count=200
- ++ tr -c -d '[A-Za-z0-9]'
- ++ sed -n 's/\(.\{40\}\).*/\1/p'
- + for i in 1 2 3 4 5 6 7 8
- + sudo sed --in-place 's@KEY6@XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj@g' /var/www/wordpress/wp-config.php
- + replace_string='XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj'
- + match_string=KEY6
- + local workfile=/var/www/wordpress/wp-config.php
- + local 'replace_string=XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj'
- + local match_string=KEY6
- + local delimit=@
- + ynh_replace_string KEY6 'XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj' /var/www/wordpress/wp-config.php
- + '[' 'XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj' = '' ']'
- + j='XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj'
- ++ dd if=/dev/urandom bs=1 count=200
- ++ tr -c -d '[A-Za-z0-9]'
- ++ sed -n 's/\(.\{40\}\).*/\1/p'
- + for i in 1 2 3 4 5 6 7 8
- + sudo sed --in-place 's@KEY5@WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx@g' /var/www/wordpress/wp-config.php
- + replace_string='WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx'
- + match_string=KEY5
- + local workfile=/var/www/wordpress/wp-config.php
- + local 'replace_string=WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx'
- + local match_string=KEY5
- + local delimit=@
- + ynh_replace_string KEY5 'WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx' /var/www/wordpress/wp-config.php
- + '[' 'WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx' = '' ']'
- + j='WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx'
- ++ dd if=/dev/urandom bs=1 count=200
- ++ tr -c -d '[A-Za-z0-9]'
- ++ sed -n 's/\(.\{40\}\).*/\1/p'
- + for i in 1 2 3 4 5 6 7 8
- + sudo sed --in-place 's@KEY4@erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK@g' /var/www/wordpress/wp-config.php
- + replace_string='erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK'
- + match_string=KEY4
- + local workfile=/var/www/wordpress/wp-config.php
- + local 'replace_string=erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK'
- + local match_string=KEY4
- + local delimit=@
- + ynh_replace_string KEY4 'erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK' /var/www/wordpress/wp-config.php
- + '[' 'erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK' = '' ']'
- + j='erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK'
- ++ dd if=/dev/urandom bs=1 count=200
- ++ tr -c -d '[A-Za-z0-9]'
- ++ sed -n 's/\(.\{40\}\).*/\1/p'
- + for i in 1 2 3 4 5 6 7 8
- + sudo sed --in-place 's@KEY3@zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY@g' /var/www/wordpress/wp-config.php
- + replace_string='zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY'
- + match_string=KEY3
- + local workfile=/var/www/wordpress/wp-config.php
- + local 'replace_string=zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY'
- + local match_string=KEY3
- + local delimit=@
- + ynh_replace_string KEY3 'zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY' /var/www/wordpress/wp-config.php
- + '[' 'zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY' = '' ']'
- + j='zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY'
- ++ dd if=/dev/urandom bs=1 count=200
- ++ tr -c -d '[A-Za-z0-9]'
- ++ sed -n 's/\(.\{40\}\).*/\1/p'
- + for i in 1 2 3 4 5 6 7 8
- + sudo sed --in-place s@KEY2@zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h@g /var/www/wordpress/wp-config.php
- + replace_string=zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h
- + match_string=KEY2
- + local workfile=/var/www/wordpress/wp-config.php
- + local replace_string=zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h
- + local match_string=KEY2
- + local delimit=@
- + ynh_replace_string KEY2 zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h /var/www/wordpress/wp-config.php
- + '[' zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h = '' ']'
- + j=zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h
- ++ dd if=/dev/urandom bs=1 count=200
- ++ tr -c -d '[A-Za-z0-9]'
- ++ sed -n 's/\(.\{40\}\).*/\1/p'
- + for i in 1 2 3 4 5 6 7 8
- + sudo sed --in-place 's@KEY1@zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa@g' /var/www/wordpress/wp-config.php
- + replace_string='zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa'
- + match_string=KEY1
- + local workfile=/var/www/wordpress/wp-config.php
- + local 'replace_string=zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa'
- + local match_string=KEY1
- + local delimit=@
- + ynh_replace_string KEY1 'zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa' /var/www/wordpress/wp-config.php
- + '[' 'zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa' = '' ']'
- + j='zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa'
- ++ dd if=/dev/urandom bs=1 count=200
- ++ tr -c -d '[A-Za-z0-9]'
- ++ sed -n 's/\(.\{40\}\).*/\1/p'
- + for i in 1 2 3 4 5 6 7 8
- + sudo sed --in-place s@__DB_PWD__@Q7rE7pggrvzQ1ZwyirQ3LgzD@g /var/www/wordpress/wp-config.php
- + replace_string=Q7rE7pggrvzQ1ZwyirQ3LgzD
- + match_string=__DB_PWD__
- + local workfile=/var/www/wordpress/wp-config.php
- + local replace_string=Q7rE7pggrvzQ1ZwyirQ3LgzD
- + local match_string=__DB_PWD__
- + local delimit=@
- + ynh_replace_string __DB_PWD__ Q7rE7pggrvzQ1ZwyirQ3LgzD /var/www/wordpress/wp-config.php
- + sudo sed --in-place s@__DB_USER__@wordpress@g /var/www/wordpress/wp-config.php
- + replace_string=wordpress
- + match_string=__DB_USER__
- + local workfile=/var/www/wordpress/wp-config.php
- + local replace_string=wordpress
- + local match_string=__DB_USER__
- + local delimit=@
- + ynh_replace_string __DB_USER__ wordpress /var/www/wordpress/wp-config.php
- + cp ../conf/wp-config.php /var/www/wordpress/wp-config.php
- + sudo systemctl reload php5-fpm
- + sudo yunohost app setting wordpress checksum__etc_php5_fpm_conf.d_20-wordpress.ini --value=cb90d92b21068788c348c312026628af --quiet
- + ynh_app_setting_set wordpress checksum__etc_php5_fpm_conf.d_20-wordpress.ini cb90d92b21068788c348c312026628af
- ++ sudo md5sum /etc/php5/fpm/conf.d/20-wordpress.ini
- ++ cut '-d ' -f1
- + local checksum_setting_name=checksum__etc_php5_fpm_conf.d_20-wordpress.ini
- + ynh_store_file_checksum /etc/php5/fpm/conf.d/20-wordpress.ini
- + sudo chown root: /etc/php5/fpm/conf.d/20-wordpress.ini
- + sudo cp ../conf/php-fpm.ini /etc/php5/fpm/conf.d/20-wordpress.ini
- + '[' -n '' ']'
- + local checksum_value=
- ++ sudo yunohost app setting wordpress checksum__etc_php5_fpm_conf.d_20-wordpress.ini --output-as plain --quiet
- ++ ynh_app_setting_get wordpress checksum__etc_php5_fpm_conf.d_20-wordpress.ini
- + local checksum_setting_name=checksum__etc_php5_fpm_conf.d_20-wordpress.ini
- + local file=/etc/php5/fpm/conf.d/20-wordpress.ini
- + ynh_backup_if_checksum_is_different /etc/php5/fpm/conf.d/20-wordpress.ini
- + finalphpini=/etc/php5/fpm/conf.d/20-wordpress.ini
- + '[' -e ../conf/php-fpm.ini ']'
- + sudo yunohost app setting wordpress checksum__etc_php5_fpm_pool.d_wordpress.conf --value=64dc4123d3a8c2a8e7d14cdd0f907c75 --quiet
- + ynh_app_setting_set wordpress checksum__etc_php5_fpm_pool.d_wordpress.conf 64dc4123d3a8c2a8e7d14cdd0f907c75
- ++ sudo md5sum /etc/php5/fpm/pool.d/wordpress.conf
- ++ cut '-d ' -f1
- + local checksum_setting_name=checksum__etc_php5_fpm_pool.d_wordpress.conf
- + ynh_store_file_checksum /etc/php5/fpm/pool.d/wordpress.conf
- + sudo chown root: /etc/php5/fpm/pool.d/wordpress.conf
- + sudo sed --in-place s@__USER__@wordpress@g /etc/php5/fpm/pool.d/wordpress.conf
- + replace_string=wordpress
- + match_string=__USER__
- + local workfile=/etc/php5/fpm/pool.d/wordpress.conf
- + local replace_string=wordpress
- + local match_string=__USER__
- + local delimit=@
- + ynh_replace_string __USER__ wordpress /etc/php5/fpm/pool.d/wordpress.conf
- + sudo sed --in-place s@__FINALPATH__@/var/www/wordpress@g /etc/php5/fpm/pool.d/wordpress.conf
- + replace_string=/var/www/wordpress
- + match_string=__FINALPATH__
- + local workfile=/etc/php5/fpm/pool.d/wordpress.conf
- + local replace_string=/var/www/wordpress
- + local match_string=__FINALPATH__
- + local delimit=@
- + ynh_replace_string __FINALPATH__ /var/www/wordpress /etc/php5/fpm/pool.d/wordpress.conf
- + sudo sed --in-place s@__NAMETOCHANGE__@wordpress@g /etc/php5/fpm/pool.d/wordpress.conf
- + replace_string=wordpress
- + match_string=__NAMETOCHANGE__
- + local workfile=/etc/php5/fpm/pool.d/wordpress.conf
- + local replace_string=wordpress
- + local match_string=__NAMETOCHANGE__
- + local delimit=@
- + ynh_replace_string __NAMETOCHANGE__ wordpress /etc/php5/fpm/pool.d/wordpress.conf
- + sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/wordpress.conf
- + '[' -n '' ']'
- + local checksum_value=
- ++ sudo yunohost app setting wordpress checksum__etc_php5_fpm_pool.d_wordpress.conf --output-as plain --quiet
- ++ ynh_app_setting_get wordpress checksum__etc_php5_fpm_pool.d_wordpress.conf
- + local checksum_setting_name=checksum__etc_php5_fpm_pool.d_wordpress.conf
- + local file=/etc/php5/fpm/pool.d/wordpress.conf
- + ynh_backup_if_checksum_is_different /etc/php5/fpm/pool.d/wordpress.conf
- + finalphpconf=/etc/php5/fpm/pool.d/wordpress.conf
- + ynh_add_fpm_config
- + sudo useradd --no-create-home --system --user-group wordpress --shell /usr/sbin/nologin
- + local user_home_dir=--no-create-home
- + '[' 1 -ge 2 ']'
- + getent passwd wordpress
- + ynh_system_user_exists wordpress
- + ynh_system_user_create wordpress
- + sudo systemctl reload nginx
- + sudo yunohost app setting wordpress checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf --value=b223674d439a2cb22764c77d71576ef1 --quiet
- + ynh_app_setting_set wordpress checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf b223674d439a2cb22764c77d71576ef1
- ++ sudo md5sum /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- ++ cut '-d ' -f1
- + local checksum_setting_name=checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf
- + ynh_store_file_checksum /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + sudo sed --in-place s@__FINALPATH__@/var/www/wordpress@g /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + replace_string=/var/www/wordpress
- + match_string=__FINALPATH__
- + local workfile=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + local replace_string=/var/www/wordpress
- + local match_string=__FINALPATH__
- + local delimit=@
- + ynh_replace_string __FINALPATH__ /var/www/wordpress /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + test -n /var/www/wordpress
- + sudo sed --in-place s@__NAME__@wordpress@g /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + replace_string=wordpress
- + match_string=__NAME__
- + local workfile=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + local replace_string=wordpress
- + local match_string=__NAME__
- + local delimit=@
- + ynh_replace_string __NAME__ wordpress /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + test -n wordpress
- + test -n ''
- + sudo sed --in-place s@__DOMAIN__@testyzcesty.tk@g /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + replace_string=testyzcesty.tk
- + match_string=__DOMAIN__
- + local workfile=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + local replace_string=testyzcesty.tk
- + local match_string=__DOMAIN__
- + local delimit=@
- + ynh_replace_string __DOMAIN__ testyzcesty.tk /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + test -n testyzcesty.tk
- + sudo sed --in-place s@__PATH__@/wp@g /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + replace_string=/wp
- + match_string=__PATH__
- + local workfile=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + local replace_string=/wp
- + local match_string=__PATH__
- + local delimit=@
- + ynh_replace_string __PATH__ /wp /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + sudo sed --in-place s@__PATH__/@/wp/@g /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + replace_string=/wp/
- + match_string=__PATH__/
- + local workfile=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + local replace_string=/wp/
- + local match_string=__PATH__/
- + local delimit=@
- + ynh_replace_string __PATH__/ /wp/ /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + local path_url_slash_less=/wp
- + test -n /wp
- + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + '[' -n '' ']'
- + local checksum_value=
- ++ sudo yunohost app setting wordpress checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf --output-as plain --quiet
- ++ ynh_app_setting_get wordpress checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf
- + local checksum_setting_name=checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf
- + local file=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + ynh_backup_if_checksum_is_different /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + finalnginxconf=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
- + ynh_add_nginx_config
- + sudo sed --in-place 's@^#sub_path_only@@g' ../conf/nginx.conf
- + replace_string=
- + match_string='^#sub_path_only'
- + local workfile=../conf/nginx.conf
- + local replace_string=
- + local 'match_string=^#sub_path_only'
- + local delimit=@
- + ynh_replace_string '^#sub_path_only' '' ../conf/nginx.conf
- + '[' /wp '!=' / ']'
- + test -e /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../sources/extra_files/app
- + (( 0 > 0 ))
- ++ find /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../sources/patches/ -type f -name 'app-*.patch'
- ++ wc -l
- + tar -xf app.tar.gz -C /var/www/wordpress --strip-components 1
- + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
- + strip='--strip-components 1'
- + true
- + local strip=
- + '[' tar.gz = zip ']'
- + mkdir -p /var/www/wordpress
- + echo '111ecbfc98633103e1fc1105c0c00c76 app.tar.gz'
- + md5sum -c --status
- 2018-03-19 23:46:55 URL:https://wordpress.org/wordpress-4.9.1.tar.gz [9638827/9638827] -> "app.tar.gz" [1]
- + wget -nv -O app.tar.gz https://wordpress.org/wordpress-4.9.1.tar.gz
- + test -e /opt/yunohost-apps-src/wordpress/app.tar.gz
- + local local_src=/opt/yunohost-apps-src/wordpress/app.tar.gz
- + src_filename=app.tar.gz
- + '[' '' = '' ']'
- + src_format=tar.gz
- ++ echo tar.gz
- ++ tr '[:upper:]' '[:lower:]'
- + src_format=tar.gz
- + src_in_subdir=true
- + src_sumprg=md5sum
- + local src_filename=
- ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
- ++ cut -d= -f2-
- + local src_in_subdir=true
- ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
- ++ cut -d= -f2-
- + local src_format=
- ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
- ++ cut -d= -f2-
- + local src_sumprg=md5sum
- ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
- ++ cut -d= -f2-
- + local src_sum=111ecbfc98633103e1fc1105c0c00c76
- ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
- ++ cut -d= -f2-
- + local src_url=https://wordpress.org/wordpress-4.9.1.tar.gz
- ++ grep SOURCE_URL= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
- ++ cut -d= -f2-
- + local src_id=app
- + local dest_dir=/var/www/wordpress
- + ynh_setup_source /var/www/wordpress
- + sudo yunohost app setting wordpress final_path --value=/var/www/wordpress --quiet
- + ynh_app_setting_set wordpress final_path /var/www/wordpress
- + sudo yunohost app setting wordpress mysqlpwd --value=Q7rE7pggrvzQ1ZwyirQ3LgzD --quiet
- + ynh_app_setting_set wordpress mysqlpwd Q7rE7pggrvzQ1ZwyirQ3LgzD
- + mysql -u root --password=LEpZvLqCJ0 -B ''
- + ynh_mysql_connect_as root LEpZvLqCJ0 ''
- ++ sudo cat /etc/yunohost/mysql
- + ynh_mysql_execute_as_root 'CREATE DATABASE wordpress; GRANT ALL PRIVILEGES ON wordpress.* TO '\''wordpress'\''@'\''localhost'\'' IDENTIFIED BY '\''Q7rE7pggrvzQ1ZwyirQ3LgzD'\'' WITH GRANT OPTION;'
- + sql+=' WITH GRANT OPTION;'
- + sql+=' IDENTIFIED BY '\''Q7rE7pggrvzQ1ZwyirQ3LgzD'\'''
- + [[ -n Q7rE7pggrvzQ1ZwyirQ3LgzD ]]
- + sql+=' GRANT ALL PRIVILEGES ON wordpress.* TO '\''wordpress'\''@'\''localhost'\'''
- + [[ 3 -gt 1 ]]
- + local 'sql=CREATE DATABASE wordpress;'
- + local db=wordpress
- + ynh_mysql_create_db wordpress wordpress Q7rE7pggrvzQ1ZwyirQ3LgzD
- + db_pwd=Q7rE7pggrvzQ1ZwyirQ3LgzD
- + local new_db_pwd=Q7rE7pggrvzQ1ZwyirQ3LgzD
- ++ dd if=/dev/urandom bs=1 count=200
- ++ tr -c -d A-Za-z0-9
- ++ sed -n 's/\(.\{24\}\).*/\1/p'
- ++ ynh_string_random
- + local db_name=wordpress
- + local db_user=wordpress
- + ynh_mysql_setup_db wordpress wordpress
- + sudo yunohost app setting wordpress db_name --value=wordpress --quiet
- + ynh_app_setting_set wordpress db_name wordpress
- + db_name=wordpress
- ++ echo wordpress
- ++ local dbid=wordpress
- ++ ynh_sanitize_dbid wordpress
- + sudo yunohost app setting wordpress apt_dependencies --value=php5-cli --quiet
- + ynh_app_setting_set wordpress apt_dependencies php5-cli
- + rm /tmp/wordpress-ynh-deps.control
- + dpkg-query -W -f '${Status}' wordpress-ynh-deps
- + grep -c 'ok installed'
- + ynh_package_is_installed wordpress-ynh-deps
- + rm -rf /tmp/tmp.CUhbSeU6wr
- + [[ -n /tmp/tmp.CUhbSeU6wr ]]
- + sudo apt-get -y -qq --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
- + DEBIAN_FRONTEND=noninteractive
- + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
- + ynh_package_install -f
- Setting up wordpress-ynh-deps (4.9.1~ynh1) ...
- Unpacking wordpress-ynh-deps (4.9.1~ynh1) ...
- Preparing to unpack .../wordpress-ynh-deps_4.9.1~ynh1_all.deb ...
- (Reading database ... 53755 files and directories currently installed.)
- Selecting previously unselected package wordpress-ynh-deps.
- + sudo dpkg --force-depends -i ./wordpress-ynh-deps_4.9.1~ynh1_all.deb
- + equivs-build ./control
- + cd /tmp/tmp.CUhbSeU6wr
- + cp /tmp/wordpress-ynh-deps.control /tmp/tmp.CUhbSeU6wr/control
- + local TMPDIR=/tmp/tmp.CUhbSeU6wr
- ++ mktemp -d
- + sudo apt-get -y -qq update
- + DEBIAN_FRONTEND=noninteractive
- + ynh_apt update
- + ynh_package_update
- + [[ -z 4.9.1~ynh1 ]]
- + [[ -z wordpress-ynh-deps ]]
- + local pkgversion=4.9.1~ynh1
- ++ grep '^Version: ' /tmp/wordpress-ynh-deps.control
- ++ cut '-d ' -f 2
- + local pkgname=wordpress-ynh-deps
- ++ grep '^Package: ' /tmp/wordpress-ynh-deps.control
- ++ cut '-d ' -f 2
- + dpkg-query -W -f '${Status}' equivs
- + grep -c 'ok installed'
- + ynh_package_is_installed equivs
- + local controlfile=/tmp/wordpress-ynh-deps.control
- + ynh_package_install_from_equivs /tmp/wordpress-ynh-deps.control
- + cat
- + local dep_app=wordpress
- + '[' 10 -eq 0 ']'
- + local version=4.9.1~ynh1
- ++ grep '\"version\": ' ../manifest.json
- ++ cut -d '"' -f 4
- + '[' '!' -e ../manifest.json ']'
- + local manifest_path=../manifest.json
- + local dependencies=php5-cli
- + ynh_install_app_dependencies php5-cli
- + sudo yunohost app setting wordpress multisite --value=0 --quiet
- + ynh_app_setting_set wordpress multisite 0
- + sudo yunohost app setting wordpress language --value=en_US --quiet
- + ynh_app_setting_set wordpress language en_US
- + sudo yunohost app setting wordpress is_public --value=1 --quiet
- + ynh_app_setting_set wordpress is_public 1
- + sudo yunohost app setting wordpress admin --value=touvr --quiet
- + ynh_app_setting_set wordpress admin touvr
- + sudo yunohost app setting wordpress path --value=/wp --quiet
- + ynh_app_setting_set wordpress path /wp
- + sudo yunohost app setting wordpress domain --value=testyzcesty.tk --quiet
- + ynh_app_setting_set wordpress domain testyzcesty.tk
- + '[' /wp == / ']'
- + sudo yunohost app register-url wordpress testyzcesty.tk /wp
- + local path=/wp
- + local domain=testyzcesty.tk
- + local app=wordpress
- + ynh_webpath_register wordpress testyzcesty.tk /wp
- True
- + sudo yunohost domain url-available testyzcesty.tk /wp
- + local path=/wp
- + local domain=testyzcesty.tk
- + ynh_webpath_available testyzcesty.tk /wp
- + path_url=/wp
- ++ echo /wp
- ++ '[' p == / ']'
- ++ '[' / '!=' / ']'
- ++ test -n /wp
- ++ local path_url=/wp
- ++ ynh_normalize_url_path /wp
- + test '!' -e /var/www/wordpress
- + final_path=/var/www/wordpress
- + app=wordpress
- + is_public=1
- + multisite=0
- + language=en_US
- + admin_wordpress=touvr
- + path_url=/wp
- + domain=testyzcesty.tk
- + trap ynh_exit_properly EXIT
- + set -eu
- + ynh_abort_if_errors
- ++ . /usr/share/yunohost/helpers.d/utils
- ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/user
- ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/system
- ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/string
- ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/setting
- ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/print
- ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/package
- ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/network
- ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
- ++ . /usr/share/yunohost/helpers.d/mysql
- ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/ip
- ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- +++ CAN_BIND=1
- ++ . /usr/share/yunohost/helpers.d/filesystem
- ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ . /usr/share/yunohost/helpers.d/backend
- ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- +++ run-parts --list /usr/share/yunohost/helpers.d
- + source /usr/share/yunohost/helpers
- + source _common.sh
- Executing script '/var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/install'...
- Checking required packages for wordpress...
- Done
- Extracting...
- Downloading...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement