Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.27 KB | None | 0 0
  1. The SSOwat configuration has been generated
  2.  
  3. Remove the user wordpress
  4.  
  5. + sudo userdel wordpress
  6.  
  7. + echo 'Remove the user wordpress'
  8.  
  9. + getent passwd wordpress
  10.  
  11. + ynh_system_user_exists wordpress
  12.  
  13. + ynh_system_user_delete wordpress
  14.  
  15. + sudo systemctl restart fail2ban
  16.  
  17. + sudo rm -R /etc/fail2ban/filter.d/wordpress.conf
  18.  
  19. + '[' -e /etc/fail2ban/filter.d/wordpress.conf ']'
  20.  
  21. + [[ f = \/ ]]
  22.  
  23. + [[ /etc/fail2ban/filter.d/wordpress.conf =~ ^/[[:alnum:]]+$ ]]
  24.  
  25. + [[ /var/www /home/yunohost.app =~ /etc/fail2ban/filter\.d/wordpress\.conf ]]
  26.  
  27. + local 'forbidden_path= /var/www /home/yunohost.app'
  28.  
  29. + local path_to_remove=/etc/fail2ban/filter.d/wordpress.conf
  30.  
  31. + ynh_secure_remove /etc/fail2ban/filter.d/wordpress.conf
  32.  
  33. + sudo rm -R /etc/fail2ban/jail.d/wordpress.conf
  34.  
  35. + '[' -e /etc/fail2ban/jail.d/wordpress.conf ']'
  36.  
  37. + [[ f = \/ ]]
  38.  
  39. + [[ /etc/fail2ban/jail.d/wordpress.conf =~ ^/[[:alnum:]]+$ ]]
  40.  
  41. + [[ /var/www /home/yunohost.app =~ /etc/fail2ban/jail\.d/wordpress\.conf ]]
  42.  
  43. + local 'forbidden_path= /var/www /home/yunohost.app'
  44.  
  45. + local path_to_remove=/etc/fail2ban/jail.d/wordpress.conf
  46.  
  47. + ynh_secure_remove /etc/fail2ban/jail.d/wordpress.conf
  48.  
  49. + ynh_remove_fail2ban_config
  50.  
  51. + sudo systemctl reload php5-fpm
  52.  
  53. + sudo rm -R /etc/php5/fpm/conf.d/20-wordpress.ini
  54.  
  55. + '[' -e /etc/php5/fpm/conf.d/20-wordpress.ini ']'
  56.  
  57. + [[ i = \/ ]]
  58.  
  59. + [[ /etc/php5/fpm/conf.d/20-wordpress.ini =~ ^/[[:alnum:]]+$ ]]
  60.  
  61. + [[ /var/www /home/yunohost.app =~ /etc/php5/fpm/conf\.d/20-wordpress\.ini ]]
  62.  
  63. + local 'forbidden_path= /var/www /home/yunohost.app'
  64.  
  65. + local path_to_remove=/etc/php5/fpm/conf.d/20-wordpress.ini
  66.  
  67. + ynh_secure_remove /etc/php5/fpm/conf.d/20-wordpress.ini
  68.  
  69. + sudo rm -R /etc/php5/fpm/pool.d/wordpress.conf
  70.  
  71. + '[' -e /etc/php5/fpm/pool.d/wordpress.conf ']'
  72.  
  73. + [[ f = \/ ]]
  74.  
  75. + [[ /etc/php5/fpm/pool.d/wordpress.conf =~ ^/[[:alnum:]]+$ ]]
  76.  
  77. + [[ /var/www /home/yunohost.app =~ /etc/php5/fpm/pool\.d/wordpress\.conf ]]
  78.  
  79. + local 'forbidden_path= /var/www /home/yunohost.app'
  80.  
  81. + local path_to_remove=/etc/php5/fpm/pool.d/wordpress.conf
  82.  
  83. + ynh_secure_remove /etc/php5/fpm/pool.d/wordpress.conf
  84.  
  85. + ynh_remove_fpm_config
  86.  
  87. + sudo systemctl reload nginx
  88.  
  89. + sudo rm -R /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  90.  
  91. + '[' -e /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf ']'
  92.  
  93. + [[ f = \/ ]]
  94.  
  95. + [[ /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf =~ ^/[[:alnum:]]+$ ]]
  96.  
  97. + [[ /var/www /home/yunohost.app =~ /etc/nginx/conf\.d/testyzcesty\.tk\.d/wordpress\.conf ]]
  98.  
  99. + local 'forbidden_path= /var/www /home/yunohost.app'
  100.  
  101. + local path_to_remove=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  102.  
  103. + ynh_secure_remove /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  104.  
  105. + ynh_remove_nginx_config
  106.  
  107. + sudo rm -R /var/www/wordpress
  108.  
  109. + '[' -e /var/www/wordpress ']'
  110.  
  111. + [[ s = \/ ]]
  112.  
  113. + [[ /var/www/wordpress =~ ^/[[:alnum:]]+$ ]]
  114.  
  115. + [[ /var/www /home/yunohost.app =~ /var/www/wordpress ]]
  116.  
  117. + local 'forbidden_path= /var/www /home/yunohost.app'
  118.  
  119. + local path_to_remove=/var/www/wordpress
  120.  
  121. + ynh_secure_remove /var/www/wordpress
  122.  
  123. + mysql -u root --password=LEpZvLqCJ0 -B ''
  124.  
  125. + ynh_mysql_connect_as root LEpZvLqCJ0 ''
  126.  
  127. ++ sudo cat /etc/yunohost/mysql
  128.  
  129. + ynh_mysql_execute_as_root 'DROP USER '\''wordpress'\''@'\''localhost'\'';'
  130.  
  131. + ynh_mysql_drop_user wordpress
  132.  
  133. ++ return 0
  134.  
  135. wordpress ]]
  136.  
  137. ++ [[ -z User
  138.  
  139. +++ mysql -u root --password=LEpZvLqCJ0 -B ''
  140.  
  141. +++ ynh_mysql_connect_as root LEpZvLqCJ0 ''
  142.  
  143. ++++ sudo cat /etc/yunohost/mysql
  144.  
  145. +++ ynh_mysql_execute_as_root 'SELECT User from mysql.user WHERE User = '\''wordpress'\'';'
  146.  
  147. ++ local user=wordpress
  148.  
  149. ++ ynh_mysql_user_exists wordpress
  150.  
  151. + mysql -u root --password=LEpZvLqCJ0 -B ''
  152.  
  153. + ynh_mysql_connect_as root LEpZvLqCJ0 ''
  154.  
  155. ++ sudo cat /etc/yunohost/mysql
  156.  
  157. Removing database wordpress
  158.  
  159. + ynh_mysql_execute_as_root 'DROP DATABASE wordpress;'
  160.  
  161. + ynh_mysql_drop_db wordpress
  162.  
  163. + echo 'Removing database wordpress'
  164.  
  165. + mysqlshow -u root -pLEpZvLqCJ0
  166.  
  167. + grep -q '^| wordpress'
  168.  
  169. + local mysql_root_password=LEpZvLqCJ0
  170.  
  171. ++ sudo cat /etc/yunohost/mysql
  172.  
  173. + local db_name=wordpress
  174.  
  175. + local db_user=wordpress
  176.  
  177. + ynh_mysql_remove_db wordpress wordpress
  178.  
  179. Removing wordpress-ynh-deps (4.9.1~ynh1) ...
  180.  
  181. (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.)
  182.  
  183. 3 files changed, 6 insertions(+), 4 deletions(-)
  184.  
  185. [master c490397] saving uncommitted changes in /etc prior to apt run
  186.  
  187. + sudo apt-get -y -qq autoremove --purge wordpress-ynh-deps
  188.  
  189. + DEBIAN_FRONTEND=noninteractive
  190.  
  191. + ynh_apt autoremove --purge wordpress-ynh-deps
  192.  
  193. + ynh_package_autopurge wordpress-ynh-deps
  194.  
  195. + local dep_app=wordpress
  196.  
  197. + ynh_remove_app_dependencies
  198.  
  199. + db_name=wordpress
  200.  
  201. ++ sudo yunohost app setting wordpress db_name --output-as plain --quiet
  202.  
  203. ++ ynh_app_setting_get wordpress db_name
  204.  
  205. + domain=testyzcesty.tk
  206.  
  207. ++ sudo yunohost app setting wordpress domain --output-as plain --quiet
  208.  
  209. ++ ynh_app_setting_get wordpress domain
  210.  
  211. + app=wordpress
  212.  
  213. ++ . /usr/share/yunohost/helpers.d/utils
  214.  
  215. ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
  216.  
  217. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  218.  
  219. ++ . /usr/share/yunohost/helpers.d/user
  220.  
  221. ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
  222.  
  223. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  224.  
  225. ++ . /usr/share/yunohost/helpers.d/system
  226.  
  227. ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
  228.  
  229. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  230.  
  231. ++ . /usr/share/yunohost/helpers.d/string
  232.  
  233. ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
  234.  
  235. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  236.  
  237. ++ . /usr/share/yunohost/helpers.d/setting
  238.  
  239. ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
  240.  
  241. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  242.  
  243. ++ . /usr/share/yunohost/helpers.d/print
  244.  
  245. ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
  246.  
  247. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  248.  
  249. ++ . /usr/share/yunohost/helpers.d/package
  250.  
  251. ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
  252.  
  253. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  254.  
  255. ++ . /usr/share/yunohost/helpers.d/network
  256.  
  257. ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
  258.  
  259. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  260.  
  261. +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
  262.  
  263. ++ . /usr/share/yunohost/helpers.d/mysql
  264.  
  265. ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
  266.  
  267. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  268.  
  269. ++ . /usr/share/yunohost/helpers.d/ip
  270.  
  271. ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
  272.  
  273. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  274.  
  275. +++ CAN_BIND=1
  276.  
  277. ++ . /usr/share/yunohost/helpers.d/filesystem
  278.  
  279. ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
  280.  
  281. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  282.  
  283. ++ . /usr/share/yunohost/helpers.d/backend
  284.  
  285. ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
  286.  
  287. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  288.  
  289. +++ run-parts --list /usr/share/yunohost/helpers.d
  290.  
  291. + source /usr/share/yunohost/helpers
  292.  
  293. + source _common.sh
  294.  
  295. Executing script '/var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/remove'...
  296.  
  297. !!
  298.  
  299. wordpress's script has encountered an error. Its execution was cancelled.
  300.  
  301. !!
  302.  
  303. _common.sh: line 214: echo: write error: Broken pipe
  304.  
  305. _common.sh: line 214: mail: command not found
  306.  
  307. + exit 1
  308.  
  309. + echo ''
  310.  
  311. + ynh_die
  312.  
  313. + type -t ynh_clean_setup
  314.  
  315. + echo -e '!!\n wordpress'\''s script has encountered an error. Its execution was cancelled.\n!!'
  316.  
  317. + set +eu
  318.  
  319. + trap '' EXIT
  320.  
  321. + '[' 127 -eq 0 ']'
  322.  
  323. + local exit_code=127
  324.  
  325. + ynh_exit_properly
  326.  
  327. - nginx: configuration file /etc/nginx/nginx.conf test is successful'
  328.  
  329. - nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  330.  
  331. nginx:
  332.  
  333. swap: 1.9GiB (1.8GiB free)
  334.  
  335. ram: 996.8MiB (367.5MiB free)
  336.  
  337. memory:
  338.  
  339. sda1: Mounted on /boot, 461.0MiB (407.1MiB free)
  340.  
  341. dm-0: Mounted on /, 17.3GiB (13.6GiB free)
  342.  
  343. disks:
  344.  
  345. system:
  346.  
  347. backports:
  348.  
  349. version: 2.7.7
  350.  
  351. repo: stable
  352.  
  353. ssowat:
  354.  
  355. version: 2.7.7
  356.  
  357. repo: stable
  358.  
  359. moulinette:
  360.  
  361. version: 2.7.7
  362.  
  363. repo: stable
  364.  
  365. yunohost-admin:
  366.  
  367. version: 2.7.10
  368.  
  369. repo: stable
  370.  
  371. yunohost:
  372.  
  373. packages:
  374.  
  375. kernel: 3.16.0-5-amd64
  376.  
  377. host: Debian 8.10
  378.  
  379. Automatic diagnosis data from YunoHost
  380.  
  381. ---
  382.  
  383. 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
  384.  
  385. Specific information for the application wordpress.
  386.  
  387. + echo 'This is an automated message from your beloved YunoHost server.
  388.  
  389. + mail -a 'Content-Type: text/plain; charset=UTF-8' -s '☁️🆈🅽🅷☁️: `wordpress` was just installed!' ' touvr@testyzcesty.tk'
  390.  
  391. - nginx: configuration file /etc/nginx/nginx.conf test is successful'
  392.  
  393. - nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  394.  
  395. nginx:
  396.  
  397. swap: 1.9GiB (1.8GiB free)
  398.  
  399. ram: 996.8MiB (367.5MiB free)
  400.  
  401. memory:
  402.  
  403. sda1: Mounted on /boot, 461.0MiB (407.1MiB free)
  404.  
  405. dm-0: Mounted on /, 17.3GiB (13.6GiB free)
  406.  
  407. disks:
  408.  
  409. system:
  410.  
  411. backports:
  412.  
  413. version: 2.7.7
  414.  
  415. repo: stable
  416.  
  417. ssowat:
  418.  
  419. version: 2.7.7
  420.  
  421. repo: stable
  422.  
  423. moulinette:
  424.  
  425. version: 2.7.7
  426.  
  427. repo: stable
  428.  
  429. yunohost-admin:
  430.  
  431. version: 2.7.10
  432.  
  433. repo: stable
  434.  
  435. yunohost:
  436.  
  437. packages:
  438.  
  439. kernel: 3.16.0-5-amd64
  440.  
  441. host: Debian 8.10
  442.  
  443. Automatic diagnosis data from YunoHost
  444.  
  445. ---
  446.  
  447. 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
  448.  
  449. Specific information for the application wordpress.
  450.  
  451. + local 'mail_message=This is an automated message from your beloved YunoHost server.
  452.  
  453. ++ yunohost tools diagnosis
  454.  
  455. ++ grep -B 100 services:
  456.  
  457. ++ sed /services:/d
  458.  
  459. + local 'mail_subject=☁️🆈🅽🅷☁️: `wordpress` was just installed!'
  460.  
  461. + recipients=' touvr@testyzcesty.tk'
  462.  
  463. ++ echo ' touvr@testyzcesty.tk'
  464.  
  465. ++ recipients=' touvr@testyzcesty.tk'
  466.  
  467. ++ mail=touvr@testyzcesty.tk
  468.  
  469. +++ return
  470.  
  471. +++ [[ #fullname =~ ^#[^#] ]]
  472.  
  473. +++ [[ 1 == \1 ]]
  474.  
  475. +++ read line
  476.  
  477. +++ echo touvr@testyzcesty.tk
  478.  
  479. +++ [[ touvr@testyzcesty.tk =~ ^#[^#] ]]
  480.  
  481. +++ [[ 1 == \1 ]]
  482.  
  483. +++ read line
  484.  
  485. +++ founded=1
  486.  
  487. +++ [[ -n '' ]]
  488.  
  489. +++ [[ #mail =~ ^#mail$ ]]
  490.  
  491. +++ [[ 0 == \1 ]]
  492.  
  493. +++ read line
  494.  
  495. +++ [[ postmaster@testyzcesty.tk =~ ^#mail$ ]]
  496.  
  497. +++ [[ 0 == \1 ]]
  498.  
  499. +++ read line
  500.  
  501. +++ [[ webmaster@testyzcesty.tk =~ ^#mail$ ]]
  502.  
  503. +++ [[ 0 == \1 ]]
  504.  
  505. +++ read line
  506.  
  507. +++ [[ admin@testyzcesty.tk =~ ^#mail$ ]]
  508.  
  509. +++ [[ 0 == \1 ]]
  510.  
  511. +++ read line
  512.  
  513. +++ [[ root@testyzcesty.tk =~ ^#mail$ ]]
  514.  
  515. +++ [[ 0 == \1 ]]
  516.  
  517. +++ read line
  518.  
  519. +++ [[ #mail-aliases =~ ^#mail$ ]]
  520.  
  521. +++ [[ 0 == \1 ]]
  522.  
  523. +++ read line
  524.  
  525. +++ [[ No quota =~ ^#mail$ ]]
  526.  
  527. +++ [[ 0 == \1 ]]
  528.  
  529. +++ read line
  530.  
  531. +++ [[ ##limit =~ ^#mail$ ]]
  532.  
  533. +++ [[ 0 == \1 ]]
  534.  
  535. +++ read line
  536.  
  537. +++ [[ 3.0K =~ ^#mail$ ]]
  538.  
  539. +++ [[ 0 == \1 ]]
  540.  
  541. +++ read line
  542.  
  543. +++ [[ ##use =~ ^#mail$ ]]
  544.  
  545. +++ [[ 0 == \1 ]]
  546.  
  547. +++ read line
  548.  
  549. +++ [[ #mailbox-quota =~ ^#mail$ ]]
  550.  
  551. +++ [[ 0 == \1 ]]
  552.  
  553. +++ read line
  554.  
  555. +++ [[ Dvorak =~ ^#mail$ ]]
  556.  
  557. +++ [[ 0 == \1 ]]
  558.  
  559. +++ read line
  560.  
  561. +++ [[ #lastname =~ ^#mail$ ]]
  562.  
  563. +++ [[ 0 == \1 ]]
  564.  
  565. +++ read line
  566.  
  567. +++ [[ Krystof =~ ^#mail$ ]]
  568.  
  569. +++ [[ 0 == \1 ]]
  570.  
  571. +++ read line
  572.  
  573. +++ [[ #firstname =~ ^#mail$ ]]
  574.  
  575. +++ [[ 0 == \1 ]]
  576.  
  577. +++ read line
  578.  
  579. +++ [[ touvr =~ ^#mail$ ]]
  580.  
  581. +++ [[ 0 == \1 ]]
  582.  
  583. +++ read line
  584.  
  585. +++ [[ #username =~ ^#mail$ ]]
  586.  
  587. +++ [[ 0 == \1 ]]
  588.  
  589. +++ read line
  590.  
  591. +++ shift
  592.  
  593. +++ local key=mail
  594.  
  595. +++ local founded=0
  596.  
  597. +++ local prefix=#
  598.  
  599. +++ sudo yunohost user info touvr --output-as plain
  600.  
  601. +++ ynh_get_plain_key mail
  602.  
  603. +++ ynh_user_get_info touvr mail
  604.  
  605. ++ grep --quiet @
  606.  
  607. ++ echo touvr
  608.  
  609. ++ '[' touvr = root ']'
  610.  
  611. ++ for mail in '$list_mails'
  612.  
  613. ++ local 'recipients= '
  614.  
  615. ++ local mail
  616.  
  617. ++ local list_mails=touvr
  618.  
  619. ++ find_mails touvr
  620.  
  621. + local recipients=touvr
  622.  
  623. + 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'
  624.  
  625. + 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
  626.  
  627. + 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'
  628.  
  629. + sudo rm -R /var/www/wordpress/wp-cli.phar
  630.  
  631. + '[' -e /var/www/wordpress/wp-cli.phar ']'
  632.  
  633. + [[ r = \/ ]]
  634.  
  635. + [[ /var/www/wordpress/wp-cli.phar =~ ^/[[:alnum:]]+$ ]]
  636.  
  637. + [[ /var/www /home/yunohost.app =~ /var/www/wordpress/wp-cli\.phar ]]
  638.  
  639. + local 'forbidden_path= /var/www /home/yunohost.app'
  640.  
  641. + local path_to_remove=/var/www/wordpress/wp-cli.phar
  642.  
  643. + ynh_secure_remove /var/www/wordpress/wp-cli.phar
  644.  
  645. + systemctl reload nginx
  646.  
  647. + '[' 1 -eq 0 ']'
  648.  
  649. + '[' -n '' ']'
  650.  
  651. + local fail2ban_error=
  652.  
  653. ++ journalctl -u fail2ban
  654.  
  655. ++ tail -n50
  656.  
  657. ++ grep 'WARNING.*wordpress.*'
  658.  
  659. + systemctl restart fail2ban
  660.  
  661. + sudo yunohost app setting wordpress checksum__etc_fail2ban_filter.d_wordpress.conf --value=ba4022def5688325f93e3a09d2dbe89d --quiet
  662.  
  663. + ynh_app_setting_set wordpress checksum__etc_fail2ban_filter.d_wordpress.conf ba4022def5688325f93e3a09d2dbe89d
  664.  
  665. ++ sudo md5sum /etc/fail2ban/filter.d/wordpress.conf
  666.  
  667. ++ cut '-d ' -f1
  668.  
  669. + local checksum_setting_name=checksum__etc_fail2ban_filter.d_wordpress.conf
  670.  
  671. + ynh_store_file_checksum /etc/fail2ban/filter.d/wordpress.conf
  672.  
  673. + sudo yunohost app setting wordpress checksum__etc_fail2ban_jail.d_wordpress.conf --value=fd860149809c226fe042388ed59c4e96 --quiet
  674.  
  675. + ynh_app_setting_set wordpress checksum__etc_fail2ban_jail.d_wordpress.conf fd860149809c226fe042388ed59c4e96
  676.  
  677. ++ sudo md5sum /etc/fail2ban/jail.d/wordpress.conf
  678.  
  679. ++ cut '-d ' -f1
  680.  
  681. + local checksum_setting_name=checksum__etc_fail2ban_jail.d_wordpress.conf
  682.  
  683. + ynh_store_file_checksum /etc/fail2ban/jail.d/wordpress.conf
  684.  
  685. ignoreregex =
  686.  
  687. failregex = Authentication (attempt for unknown user|failure for) .* from
  688.  
  689. [Definition]
  690.  
  691. before = common.conf
  692.  
  693. [INCLUDES]
  694.  
  695. + sudo tee /etc/fail2ban/filter.d/wordpress.conf
  696.  
  697. maxretry = 5
  698.  
  699. logpath = /var/log/auth.log
  700.  
  701. filter = wordpress
  702.  
  703. port = http,https
  704.  
  705. enabled = true
  706.  
  707. [wordpress]
  708.  
  709. + sudo tee /etc/fail2ban/jail.d/wordpress.conf
  710.  
  711. + '[' -n '' ']'
  712.  
  713. + local checksum_value=
  714.  
  715. ++ sudo yunohost app setting wordpress checksum__etc_fail2ban_filter.d_wordpress.conf --output-as plain --quiet
  716.  
  717. ++ ynh_app_setting_get wordpress checksum__etc_fail2ban_filter.d_wordpress.conf
  718.  
  719. + local checksum_setting_name=checksum__etc_fail2ban_filter.d_wordpress.conf
  720.  
  721. + local file=/etc/fail2ban/filter.d/wordpress.conf
  722.  
  723. + ynh_backup_if_checksum_is_different /etc/fail2ban/filter.d/wordpress.conf 1
  724.  
  725. + '[' -n '' ']'
  726.  
  727. + local checksum_value=
  728.  
  729. ++ sudo yunohost app setting wordpress checksum__etc_fail2ban_jail.d_wordpress.conf --output-as plain --quiet
  730.  
  731. ++ ynh_app_setting_get wordpress checksum__etc_fail2ban_jail.d_wordpress.conf
  732.  
  733. + local checksum_setting_name=checksum__etc_fail2ban_jail.d_wordpress.conf
  734.  
  735. + local file=/etc/fail2ban/jail.d/wordpress.conf
  736.  
  737. + ynh_backup_if_checksum_is_different /etc/fail2ban/jail.d/wordpress.conf 1
  738.  
  739. + finalfail2banfilterconf=/etc/fail2ban/filter.d/wordpress.conf
  740.  
  741. + finalfail2banjailconf=/etc/fail2ban/jail.d/wordpress.conf
  742.  
  743. + test -n 'Authentication (attempt for unknown user|failure for) .* from '
  744.  
  745. + test -n /var/log/auth.log
  746.  
  747. + ports=http,https
  748.  
  749. + max_retry=5
  750.  
  751. + failregex='Authentication (attempt for unknown user|failure for) .* from '
  752.  
  753. + logpath=/var/log/auth.log
  754.  
  755. + ynh_add_fail2ban_config /var/log/auth.log 'Authentication (attempt for unknown user|failure for) .* from ' 5
  756.  
  757. + chown root: /var/www/wordpress/wp-config.php
  758.  
  759. + chown -R wordpress: /var/www/wordpress
  760.  
  761. + sudo yunohost app setting wordpress checksum__var_www_wordpress_wp-config.php --value=27e7657d2947306edd13f6013c6010bf --quiet
  762.  
  763. + ynh_app_setting_set wordpress checksum__var_www_wordpress_wp-config.php 27e7657d2947306edd13f6013c6010bf
  764.  
  765. ++ sudo md5sum /var/www/wordpress/wp-config.php
  766.  
  767. ++ cut '-d ' -f1
  768.  
  769. + local checksum_setting_name=checksum__var_www_wordpress_wp-config.php
  770.  
  771. + ynh_store_file_checksum /var/www/wordpress/wp-config.php
  772.  
  773. Success: Activated 1 of 1 plugins.
  774.  
  775. Plugin 'wp-fail2ban' activated.
  776.  
  777. + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin activate wp-fail2ban
  778.  
  779. Success: Activated 1 of 1 plugins.
  780.  
  781. Plugin 'companion-auto-update' activated.
  782.  
  783. + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin activate companion-auto-update
  784.  
  785. Success: Activated 1 of 1 plugins.
  786.  
  787. Plugin 'simple-ldap-login' activated.
  788.  
  789. + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin activate simple-ldap-login
  790.  
  791. + plugin_network=
  792.  
  793. + mysql -u wordpress --password=Q7rE7pggrvzQ1ZwyirQ3LgzD -B wordpress
  794.  
  795. + ynh_mysql_connect_as wordpress Q7rE7pggrvzQ1ZwyirQ3LgzD wordpress
  796.  
  797. + '[' 0 -eq 1 ']'
  798.  
  799. Success: Language activated.
  800.  
  801. + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress core language activate en_US
  802.  
  803. Warning: Language 'en_US' already installed.
  804.  
  805. + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress core language install en_US
  806.  
  807. Success: Installed 1 of 1 plugins.
  808.  
  809. Plugin installed successfully.
  810.  
  811. Installing the plugin...
  812.  
  813. Unpacking the package...
  814.  
  815. Using cached file '/.wp-cli/cache/plugin/wp-fail2ban-3.5.3.zip'...
  816.  
  817. Downloading installation package from https://downloads.wordpress.org/plugin/wp-fail2ban.3.5.3.zip...
  818.  
  819. Installing WP fail2ban (3.5.3)
  820.  
  821. + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin install wp-fail2ban
  822.  
  823. Success: Installed 1 of 1 plugins.
  824.  
  825. Plugin installed successfully.
  826.  
  827. Installing the plugin...
  828.  
  829. Unpacking the package...
  830.  
  831. Using cached file '/.wp-cli/cache/plugin/companion-auto-update-3.0.7.zip'...
  832.  
  833. Downloading installation package from https://downloads.wordpress.org/plugin/companion-auto-update.3.0.7.zip...
  834.  
  835. Installing Companion Auto Update (3.0.7)
  836.  
  837. + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin install companion-auto-update
  838.  
  839. Success: Installed 1 of 1 plugins.
  840.  
  841. Plugin installed successfully.
  842.  
  843. Installing the plugin...
  844.  
  845. Unpacking the package...
  846.  
  847. Using cached file '/.wp-cli/cache/plugin/http-authentication-4.5.zip'...
  848.  
  849. Downloading installation package from https://downloads.wordpress.org/plugin/http-authentication.4.5.zip...
  850.  
  851. Installing HTTP Authentication (4.5)
  852.  
  853. + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin install http-authentication
  854.  
  855. Success: Installed 1 of 1 plugins.
  856.  
  857. Plugin installed successfully.
  858.  
  859. Installing the plugin...
  860.  
  861. Unpacking the package...
  862.  
  863. Using cached file '/.wp-cli/cache/plugin/simple-ldap-login-1.6.0.zip'...
  864.  
  865. Downloading installation package from https://downloads.wordpress.org/plugin/simple-ldap-login.1.6.0.zip...
  866.  
  867. Installing Simple LDAP Login (1.6.0)
  868.  
  869. + php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin install simple-ldap-login
  870.  
  871. + wpcli_alias='php /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress'
  872.  
  873. 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]
  874.  
  875. Please wait during Wordpress installation
  876.  
  877. + wget -nv https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /var/www/wordpress/wp-cli.phar
  878.  
  879. + echo
  880.  
  881. + WARNING echo ''
  882.  
  883. + break
  884.  
  885. + grep -q wp_options
  886.  
  887. + mysql -u wordpress --password=Q7rE7pggrvzQ1ZwyirQ3LgzD -B wordpress
  888.  
  889. + ynh_mysql_connect_as wordpress Q7rE7pggrvzQ1ZwyirQ3LgzD wordpress
  890.  
  891. + for i in '`seq 1 300`'
  892.  
  893. ++ seq 1 300
  894.  
  895. + echo -n Please wait during Wordpress installation
  896.  
  897. + WARNING echo -n 'Please wait during Wordpress installation'
  898.  
  899. } );
  900.  
  901. $( '.hide-if-no-js' ).removeClass( 'hide-if-no-js' );
  902.  
  903. jQuery( function( $ ) {
  904.  
  905. /* ]]> */
  906.  
  907. 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"};
  908.  
  909. /*
  910. /* ]]> */
  911.  
  912. var _wpUtilSettings = {"ajax":{"url":"\/wp\/wp-admin\/admin-ajax.php"}};
  913.  
  914. /*
  915. /* ]]> */
  916.  
  917. var pwsL10n = {"unknown":"Password strength unknown","short":"Very weak","bad":"Weak","good":"Medium","strong":"Strong","mismatch":"Mismatch"};
  918.  
  919. /*
  920. /* ]]> */
  921.  
  922. var _zxcvbnSettings = {"src":"https:\/\/testyzcesty.tk\/wp\/wp-includes\/js\/zxcvbn.min.js"};
  923.  
  924. /*
  925. Log In
  926.  
  927. Your chosen password.
  928.  
  929. Password
  930.  
  931. touvr
  932.  
  933. Username
  934.  
  935. WordPress has been installed. Thank you, and enjoy!
  936.  
  937. Success!
  938. WordPress
  939.  
  940. + 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'
  941.  
  942. + POST_data='--data &weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_email=touvr@testyzcesty.tk&Submit=Install+WordPress'
  943.  
  944. + '[' -n '&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_email=touvr@testyzcesty.tk&Submit=Install+WordPress&' ']'
  945.  
  946. + POST_data='&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_email=touvr@testyzcesty.tk&Submit=Install+WordPress&'
  947.  
  948. + for arg in '"${@:2}"'
  949.  
  950. + POST_data='&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_email=touvr@testyzcesty.tk&'
  951.  
  952. + for arg in '"${@:2}"'
  953.  
  954. + POST_data='&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&admin_password2=Q7rE7pggrvzQ1ZwyirQ3LgzD&'
  955.  
  956. + for arg in '"${@:2}"'
  957.  
  958. + POST_data='&weblog_title=YunoBlog&user_name=touvr&admin_password=Q7rE7pggrvzQ1ZwyirQ3LgzD&'
  959.  
  960. + for arg in '"${@:2}"'
  961.  
  962. + POST_data='&weblog_title=YunoBlog&user_name=touvr&'
  963.  
  964. + for arg in '"${@:2}"'
  965.  
  966. + POST_data='&weblog_title=YunoBlog&'
  967.  
  968. + for arg in '"${@:2}"'
  969.  
  970. + local arg=
  971.  
  972. + local POST_data=
  973.  
  974. + local 'full_page_url=https://localhost/wp/wp-admin/install.php?step=2'
  975.  
  976. + 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
  977.  
  978. + systemctl reload nginx
  979.  
  980. The SSOwat configuration has been generated
  981.  
  982. + yunohost app ssowatconf
  983.  
  984. + sudo yunohost app setting wordpress unprotected_uris --value=/ --quiet
  985.  
  986. + ynh_app_setting_set wordpress unprotected_uris /
  987.  
  988. + chown -R wordpress: /var/www/wordpress
  989.  
  990. + sudo sed --in-place 's@KEY8@7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj@g' /var/www/wordpress/wp-config.php
  991.  
  992. + replace_string='7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj'
  993.  
  994. + match_string=KEY8
  995.  
  996. + local workfile=/var/www/wordpress/wp-config.php
  997.  
  998. + local 'replace_string=7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj'
  999.  
  1000. + local match_string=KEY8
  1001.  
  1002. + local delimit=@
  1003.  
  1004. + ynh_replace_string KEY8 '7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj' /var/www/wordpress/wp-config.php
  1005.  
  1006. + '[' '7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj' = '' ']'
  1007.  
  1008. + j='7DyV0e[8IWI]yOArneJ36uivHTNs[rnnE[8c0hIj'
  1009.  
  1010. ++ dd if=/dev/urandom bs=1 count=200
  1011.  
  1012. ++ tr -c -d '[A-Za-z0-9]'
  1013.  
  1014. ++ sed -n 's/\(.\{40\}\).*/\1/p'
  1015.  
  1016. + for i in 1 2 3 4 5 6 7 8
  1017.  
  1018. + sudo sed --in-place 's@KEY7@muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU@g' /var/www/wordpress/wp-config.php
  1019.  
  1020. + replace_string='muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU'
  1021.  
  1022. + match_string=KEY7
  1023.  
  1024. + local workfile=/var/www/wordpress/wp-config.php
  1025.  
  1026. + local 'replace_string=muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU'
  1027.  
  1028. + local match_string=KEY7
  1029.  
  1030. + local delimit=@
  1031.  
  1032. + ynh_replace_string KEY7 'muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU' /var/www/wordpress/wp-config.php
  1033.  
  1034. + '[' 'muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU' = '' ']'
  1035.  
  1036. + j='muUuRj2rRLCq4rjrSbDHmd0WWJ[t6sYaCFmjLUgU'
  1037.  
  1038. ++ dd if=/dev/urandom bs=1 count=200
  1039.  
  1040. ++ tr -c -d '[A-Za-z0-9]'
  1041.  
  1042. ++ sed -n 's/\(.\{40\}\).*/\1/p'
  1043.  
  1044. + for i in 1 2 3 4 5 6 7 8
  1045.  
  1046. + sudo sed --in-place 's@KEY6@XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj@g' /var/www/wordpress/wp-config.php
  1047.  
  1048. + replace_string='XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj'
  1049.  
  1050. + match_string=KEY6
  1051.  
  1052. + local workfile=/var/www/wordpress/wp-config.php
  1053.  
  1054. + local 'replace_string=XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj'
  1055.  
  1056. + local match_string=KEY6
  1057.  
  1058. + local delimit=@
  1059.  
  1060. + ynh_replace_string KEY6 'XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj' /var/www/wordpress/wp-config.php
  1061.  
  1062. + '[' 'XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj' = '' ']'
  1063.  
  1064. + j='XETKASctrIRXM9yJ1q6f4aoDHpEIHcvYZ[JGneJj'
  1065.  
  1066. ++ dd if=/dev/urandom bs=1 count=200
  1067.  
  1068. ++ tr -c -d '[A-Za-z0-9]'
  1069.  
  1070. ++ sed -n 's/\(.\{40\}\).*/\1/p'
  1071.  
  1072. + for i in 1 2 3 4 5 6 7 8
  1073.  
  1074. + sudo sed --in-place 's@KEY5@WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx@g' /var/www/wordpress/wp-config.php
  1075.  
  1076. + replace_string='WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx'
  1077.  
  1078. + match_string=KEY5
  1079.  
  1080. + local workfile=/var/www/wordpress/wp-config.php
  1081.  
  1082. + local 'replace_string=WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx'
  1083.  
  1084. + local match_string=KEY5
  1085.  
  1086. + local delimit=@
  1087.  
  1088. + ynh_replace_string KEY5 'WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx' /var/www/wordpress/wp-config.php
  1089.  
  1090. + '[' 'WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx' = '' ']'
  1091.  
  1092. + j='WE6nYKwalUHQKcBBsNV6cpbkV]i4QDGlxUi2gKzx'
  1093.  
  1094. ++ dd if=/dev/urandom bs=1 count=200
  1095.  
  1096. ++ tr -c -d '[A-Za-z0-9]'
  1097.  
  1098. ++ sed -n 's/\(.\{40\}\).*/\1/p'
  1099.  
  1100. + for i in 1 2 3 4 5 6 7 8
  1101.  
  1102. + sudo sed --in-place 's@KEY4@erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK@g' /var/www/wordpress/wp-config.php
  1103.  
  1104. + replace_string='erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK'
  1105.  
  1106. + match_string=KEY4
  1107.  
  1108. + local workfile=/var/www/wordpress/wp-config.php
  1109.  
  1110. + local 'replace_string=erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK'
  1111.  
  1112. + local match_string=KEY4
  1113.  
  1114. + local delimit=@
  1115.  
  1116. + ynh_replace_string KEY4 'erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK' /var/www/wordpress/wp-config.php
  1117.  
  1118. + '[' 'erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK' = '' ']'
  1119.  
  1120. + j='erNyOpE97omc8TpwcATBvXEELdYW]CGpfH9OHvdK'
  1121.  
  1122. ++ dd if=/dev/urandom bs=1 count=200
  1123.  
  1124. ++ tr -c -d '[A-Za-z0-9]'
  1125.  
  1126. ++ sed -n 's/\(.\{40\}\).*/\1/p'
  1127.  
  1128. + for i in 1 2 3 4 5 6 7 8
  1129.  
  1130. + sudo sed --in-place 's@KEY3@zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY@g' /var/www/wordpress/wp-config.php
  1131.  
  1132. + replace_string='zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY'
  1133.  
  1134. + match_string=KEY3
  1135.  
  1136. + local workfile=/var/www/wordpress/wp-config.php
  1137.  
  1138. + local 'replace_string=zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY'
  1139.  
  1140. + local match_string=KEY3
  1141.  
  1142. + local delimit=@
  1143.  
  1144. + ynh_replace_string KEY3 'zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY' /var/www/wordpress/wp-config.php
  1145.  
  1146. + '[' 'zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY' = '' ']'
  1147.  
  1148. + j='zZhzb0d[NxW59ObyLn0FKiaMGCdeC9pmA4Vh0AIY'
  1149.  
  1150. ++ dd if=/dev/urandom bs=1 count=200
  1151.  
  1152. ++ tr -c -d '[A-Za-z0-9]'
  1153.  
  1154. ++ sed -n 's/\(.\{40\}\).*/\1/p'
  1155.  
  1156. + for i in 1 2 3 4 5 6 7 8
  1157.  
  1158. + sudo sed --in-place s@KEY2@zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h@g /var/www/wordpress/wp-config.php
  1159.  
  1160. + replace_string=zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h
  1161.  
  1162. + match_string=KEY2
  1163.  
  1164. + local workfile=/var/www/wordpress/wp-config.php
  1165.  
  1166. + local replace_string=zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h
  1167.  
  1168. + local match_string=KEY2
  1169.  
  1170. + local delimit=@
  1171.  
  1172. + ynh_replace_string KEY2 zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h /var/www/wordpress/wp-config.php
  1173.  
  1174. + '[' zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h = '' ']'
  1175.  
  1176. + j=zUIUV7UElVofwn1Sww8FmTCX0IPv84wsu7YHM08h
  1177.  
  1178. ++ dd if=/dev/urandom bs=1 count=200
  1179.  
  1180. ++ tr -c -d '[A-Za-z0-9]'
  1181.  
  1182. ++ sed -n 's/\(.\{40\}\).*/\1/p'
  1183.  
  1184. + for i in 1 2 3 4 5 6 7 8
  1185.  
  1186. + sudo sed --in-place 's@KEY1@zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa@g' /var/www/wordpress/wp-config.php
  1187.  
  1188. + replace_string='zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa'
  1189.  
  1190. + match_string=KEY1
  1191.  
  1192. + local workfile=/var/www/wordpress/wp-config.php
  1193.  
  1194. + local 'replace_string=zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa'
  1195.  
  1196. + local match_string=KEY1
  1197.  
  1198. + local delimit=@
  1199.  
  1200. + ynh_replace_string KEY1 'zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa' /var/www/wordpress/wp-config.php
  1201.  
  1202. + '[' 'zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa' = '' ']'
  1203.  
  1204. + j='zFwcDe4gwnll7lJLSs7X[j6Bfv6QsPlTuCNf54oa'
  1205.  
  1206. ++ dd if=/dev/urandom bs=1 count=200
  1207.  
  1208. ++ tr -c -d '[A-Za-z0-9]'
  1209.  
  1210. ++ sed -n 's/\(.\{40\}\).*/\1/p'
  1211.  
  1212. + for i in 1 2 3 4 5 6 7 8
  1213.  
  1214. + sudo sed --in-place s@__DB_PWD__@Q7rE7pggrvzQ1ZwyirQ3LgzD@g /var/www/wordpress/wp-config.php
  1215.  
  1216. + replace_string=Q7rE7pggrvzQ1ZwyirQ3LgzD
  1217.  
  1218. + match_string=__DB_PWD__
  1219.  
  1220. + local workfile=/var/www/wordpress/wp-config.php
  1221.  
  1222. + local replace_string=Q7rE7pggrvzQ1ZwyirQ3LgzD
  1223.  
  1224. + local match_string=__DB_PWD__
  1225.  
  1226. + local delimit=@
  1227.  
  1228. + ynh_replace_string __DB_PWD__ Q7rE7pggrvzQ1ZwyirQ3LgzD /var/www/wordpress/wp-config.php
  1229.  
  1230. + sudo sed --in-place s@__DB_USER__@wordpress@g /var/www/wordpress/wp-config.php
  1231.  
  1232. + replace_string=wordpress
  1233.  
  1234. + match_string=__DB_USER__
  1235.  
  1236. + local workfile=/var/www/wordpress/wp-config.php
  1237.  
  1238. + local replace_string=wordpress
  1239.  
  1240. + local match_string=__DB_USER__
  1241.  
  1242. + local delimit=@
  1243.  
  1244. + ynh_replace_string __DB_USER__ wordpress /var/www/wordpress/wp-config.php
  1245.  
  1246. + cp ../conf/wp-config.php /var/www/wordpress/wp-config.php
  1247.  
  1248. + sudo systemctl reload php5-fpm
  1249.  
  1250. + sudo yunohost app setting wordpress checksum__etc_php5_fpm_conf.d_20-wordpress.ini --value=cb90d92b21068788c348c312026628af --quiet
  1251.  
  1252. + ynh_app_setting_set wordpress checksum__etc_php5_fpm_conf.d_20-wordpress.ini cb90d92b21068788c348c312026628af
  1253.  
  1254. ++ sudo md5sum /etc/php5/fpm/conf.d/20-wordpress.ini
  1255.  
  1256. ++ cut '-d ' -f1
  1257.  
  1258. + local checksum_setting_name=checksum__etc_php5_fpm_conf.d_20-wordpress.ini
  1259.  
  1260. + ynh_store_file_checksum /etc/php5/fpm/conf.d/20-wordpress.ini
  1261.  
  1262. + sudo chown root: /etc/php5/fpm/conf.d/20-wordpress.ini
  1263.  
  1264. + sudo cp ../conf/php-fpm.ini /etc/php5/fpm/conf.d/20-wordpress.ini
  1265.  
  1266. + '[' -n '' ']'
  1267.  
  1268. + local checksum_value=
  1269.  
  1270. ++ sudo yunohost app setting wordpress checksum__etc_php5_fpm_conf.d_20-wordpress.ini --output-as plain --quiet
  1271.  
  1272. ++ ynh_app_setting_get wordpress checksum__etc_php5_fpm_conf.d_20-wordpress.ini
  1273.  
  1274. + local checksum_setting_name=checksum__etc_php5_fpm_conf.d_20-wordpress.ini
  1275.  
  1276. + local file=/etc/php5/fpm/conf.d/20-wordpress.ini
  1277.  
  1278. + ynh_backup_if_checksum_is_different /etc/php5/fpm/conf.d/20-wordpress.ini
  1279.  
  1280. + finalphpini=/etc/php5/fpm/conf.d/20-wordpress.ini
  1281.  
  1282. + '[' -e ../conf/php-fpm.ini ']'
  1283.  
  1284. + sudo yunohost app setting wordpress checksum__etc_php5_fpm_pool.d_wordpress.conf --value=64dc4123d3a8c2a8e7d14cdd0f907c75 --quiet
  1285.  
  1286. + ynh_app_setting_set wordpress checksum__etc_php5_fpm_pool.d_wordpress.conf 64dc4123d3a8c2a8e7d14cdd0f907c75
  1287.  
  1288. ++ sudo md5sum /etc/php5/fpm/pool.d/wordpress.conf
  1289.  
  1290. ++ cut '-d ' -f1
  1291.  
  1292. + local checksum_setting_name=checksum__etc_php5_fpm_pool.d_wordpress.conf
  1293.  
  1294. + ynh_store_file_checksum /etc/php5/fpm/pool.d/wordpress.conf
  1295.  
  1296. + sudo chown root: /etc/php5/fpm/pool.d/wordpress.conf
  1297.  
  1298. + sudo sed --in-place s@__USER__@wordpress@g /etc/php5/fpm/pool.d/wordpress.conf
  1299.  
  1300. + replace_string=wordpress
  1301.  
  1302. + match_string=__USER__
  1303.  
  1304. + local workfile=/etc/php5/fpm/pool.d/wordpress.conf
  1305.  
  1306. + local replace_string=wordpress
  1307.  
  1308. + local match_string=__USER__
  1309.  
  1310. + local delimit=@
  1311.  
  1312. + ynh_replace_string __USER__ wordpress /etc/php5/fpm/pool.d/wordpress.conf
  1313.  
  1314. + sudo sed --in-place s@__FINALPATH__@/var/www/wordpress@g /etc/php5/fpm/pool.d/wordpress.conf
  1315.  
  1316. + replace_string=/var/www/wordpress
  1317.  
  1318. + match_string=__FINALPATH__
  1319.  
  1320. + local workfile=/etc/php5/fpm/pool.d/wordpress.conf
  1321.  
  1322. + local replace_string=/var/www/wordpress
  1323.  
  1324. + local match_string=__FINALPATH__
  1325.  
  1326. + local delimit=@
  1327.  
  1328. + ynh_replace_string __FINALPATH__ /var/www/wordpress /etc/php5/fpm/pool.d/wordpress.conf
  1329.  
  1330. + sudo sed --in-place s@__NAMETOCHANGE__@wordpress@g /etc/php5/fpm/pool.d/wordpress.conf
  1331.  
  1332. + replace_string=wordpress
  1333.  
  1334. + match_string=__NAMETOCHANGE__
  1335.  
  1336. + local workfile=/etc/php5/fpm/pool.d/wordpress.conf
  1337.  
  1338. + local replace_string=wordpress
  1339.  
  1340. + local match_string=__NAMETOCHANGE__
  1341.  
  1342. + local delimit=@
  1343.  
  1344. + ynh_replace_string __NAMETOCHANGE__ wordpress /etc/php5/fpm/pool.d/wordpress.conf
  1345.  
  1346. + sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/wordpress.conf
  1347.  
  1348. + '[' -n '' ']'
  1349.  
  1350. + local checksum_value=
  1351.  
  1352. ++ sudo yunohost app setting wordpress checksum__etc_php5_fpm_pool.d_wordpress.conf --output-as plain --quiet
  1353.  
  1354. ++ ynh_app_setting_get wordpress checksum__etc_php5_fpm_pool.d_wordpress.conf
  1355.  
  1356. + local checksum_setting_name=checksum__etc_php5_fpm_pool.d_wordpress.conf
  1357.  
  1358. + local file=/etc/php5/fpm/pool.d/wordpress.conf
  1359.  
  1360. + ynh_backup_if_checksum_is_different /etc/php5/fpm/pool.d/wordpress.conf
  1361.  
  1362. + finalphpconf=/etc/php5/fpm/pool.d/wordpress.conf
  1363.  
  1364. + ynh_add_fpm_config
  1365.  
  1366. + sudo useradd --no-create-home --system --user-group wordpress --shell /usr/sbin/nologin
  1367.  
  1368. + local user_home_dir=--no-create-home
  1369.  
  1370. + '[' 1 -ge 2 ']'
  1371.  
  1372. + getent passwd wordpress
  1373.  
  1374. + ynh_system_user_exists wordpress
  1375.  
  1376. + ynh_system_user_create wordpress
  1377.  
  1378. + sudo systemctl reload nginx
  1379.  
  1380. + sudo yunohost app setting wordpress checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf --value=b223674d439a2cb22764c77d71576ef1 --quiet
  1381.  
  1382. + ynh_app_setting_set wordpress checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf b223674d439a2cb22764c77d71576ef1
  1383.  
  1384. ++ sudo md5sum /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1385.  
  1386. ++ cut '-d ' -f1
  1387.  
  1388. + local checksum_setting_name=checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf
  1389.  
  1390. + ynh_store_file_checksum /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1391.  
  1392. + sudo sed --in-place s@__FINALPATH__@/var/www/wordpress@g /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1393.  
  1394. + replace_string=/var/www/wordpress
  1395.  
  1396. + match_string=__FINALPATH__
  1397.  
  1398. + local workfile=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1399.  
  1400. + local replace_string=/var/www/wordpress
  1401.  
  1402. + local match_string=__FINALPATH__
  1403.  
  1404. + local delimit=@
  1405.  
  1406. + ynh_replace_string __FINALPATH__ /var/www/wordpress /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1407.  
  1408. + test -n /var/www/wordpress
  1409.  
  1410. + sudo sed --in-place s@__NAME__@wordpress@g /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1411.  
  1412. + replace_string=wordpress
  1413.  
  1414. + match_string=__NAME__
  1415.  
  1416. + local workfile=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1417.  
  1418. + local replace_string=wordpress
  1419.  
  1420. + local match_string=__NAME__
  1421.  
  1422. + local delimit=@
  1423.  
  1424. + ynh_replace_string __NAME__ wordpress /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1425.  
  1426. + test -n wordpress
  1427.  
  1428. + test -n ''
  1429.  
  1430. + sudo sed --in-place s@__DOMAIN__@testyzcesty.tk@g /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1431.  
  1432. + replace_string=testyzcesty.tk
  1433.  
  1434. + match_string=__DOMAIN__
  1435.  
  1436. + local workfile=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1437.  
  1438. + local replace_string=testyzcesty.tk
  1439.  
  1440. + local match_string=__DOMAIN__
  1441.  
  1442. + local delimit=@
  1443.  
  1444. + ynh_replace_string __DOMAIN__ testyzcesty.tk /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1445.  
  1446. + test -n testyzcesty.tk
  1447.  
  1448. + sudo sed --in-place s@__PATH__@/wp@g /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1449.  
  1450. + replace_string=/wp
  1451.  
  1452. + match_string=__PATH__
  1453.  
  1454. + local workfile=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1455.  
  1456. + local replace_string=/wp
  1457.  
  1458. + local match_string=__PATH__
  1459.  
  1460. + local delimit=@
  1461.  
  1462. + ynh_replace_string __PATH__ /wp /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1463.  
  1464. + sudo sed --in-place s@__PATH__/@/wp/@g /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1465.  
  1466. + replace_string=/wp/
  1467.  
  1468. + match_string=__PATH__/
  1469.  
  1470. + local workfile=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1471.  
  1472. + local replace_string=/wp/
  1473.  
  1474. + local match_string=__PATH__/
  1475.  
  1476. + local delimit=@
  1477.  
  1478. + ynh_replace_string __PATH__/ /wp/ /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1479.  
  1480. + local path_url_slash_less=/wp
  1481.  
  1482. + test -n /wp
  1483.  
  1484. + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1485.  
  1486. + '[' -n '' ']'
  1487.  
  1488. + local checksum_value=
  1489.  
  1490. ++ sudo yunohost app setting wordpress checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf --output-as plain --quiet
  1491.  
  1492. ++ ynh_app_setting_get wordpress checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf
  1493.  
  1494. + local checksum_setting_name=checksum__etc_nginx_conf.d_testyzcesty.tk.d_wordpress.conf
  1495.  
  1496. + local file=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1497.  
  1498. + ynh_backup_if_checksum_is_different /etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1499.  
  1500. + finalnginxconf=/etc/nginx/conf.d/testyzcesty.tk.d/wordpress.conf
  1501.  
  1502. + ynh_add_nginx_config
  1503.  
  1504. + sudo sed --in-place 's@^#sub_path_only@@g' ../conf/nginx.conf
  1505.  
  1506. + replace_string=
  1507.  
  1508. + match_string='^#sub_path_only'
  1509.  
  1510. + local workfile=../conf/nginx.conf
  1511.  
  1512. + local replace_string=
  1513.  
  1514. + local 'match_string=^#sub_path_only'
  1515.  
  1516. + local delimit=@
  1517.  
  1518. + ynh_replace_string '^#sub_path_only' '' ../conf/nginx.conf
  1519.  
  1520. + '[' /wp '!=' / ']'
  1521.  
  1522. + test -e /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../sources/extra_files/app
  1523.  
  1524. + (( 0 > 0 ))
  1525.  
  1526. ++ find /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../sources/patches/ -type f -name 'app-*.patch'
  1527.  
  1528. ++ wc -l
  1529.  
  1530. + tar -xf app.tar.gz -C /var/www/wordpress --strip-components 1
  1531.  
  1532. + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
  1533.  
  1534. + strip='--strip-components 1'
  1535.  
  1536. + true
  1537.  
  1538. + local strip=
  1539.  
  1540. + '[' tar.gz = zip ']'
  1541.  
  1542. + mkdir -p /var/www/wordpress
  1543.  
  1544. + echo '111ecbfc98633103e1fc1105c0c00c76 app.tar.gz'
  1545.  
  1546. + md5sum -c --status
  1547.  
  1548. 2018-03-19 23:46:55 URL:https://wordpress.org/wordpress-4.9.1.tar.gz [9638827/9638827] -> "app.tar.gz" [1]
  1549.  
  1550. + wget -nv -O app.tar.gz https://wordpress.org/wordpress-4.9.1.tar.gz
  1551.  
  1552. + test -e /opt/yunohost-apps-src/wordpress/app.tar.gz
  1553.  
  1554. + local local_src=/opt/yunohost-apps-src/wordpress/app.tar.gz
  1555.  
  1556. + src_filename=app.tar.gz
  1557.  
  1558. + '[' '' = '' ']'
  1559.  
  1560. + src_format=tar.gz
  1561.  
  1562. ++ echo tar.gz
  1563.  
  1564. ++ tr '[:upper:]' '[:lower:]'
  1565.  
  1566. + src_format=tar.gz
  1567.  
  1568. + src_in_subdir=true
  1569.  
  1570. + src_sumprg=md5sum
  1571.  
  1572. + local src_filename=
  1573.  
  1574. ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
  1575.  
  1576. ++ cut -d= -f2-
  1577.  
  1578. + local src_in_subdir=true
  1579.  
  1580. ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
  1581.  
  1582. ++ cut -d= -f2-
  1583.  
  1584. + local src_format=
  1585.  
  1586. ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
  1587.  
  1588. ++ cut -d= -f2-
  1589.  
  1590. + local src_sumprg=md5sum
  1591.  
  1592. ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
  1593.  
  1594. ++ cut -d= -f2-
  1595.  
  1596. + local src_sum=111ecbfc98633103e1fc1105c0c00c76
  1597.  
  1598. ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
  1599.  
  1600. ++ cut -d= -f2-
  1601.  
  1602. + local src_url=https://wordpress.org/wordpress-4.9.1.tar.gz
  1603.  
  1604. ++ grep SOURCE_URL= /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/../conf/app.src
  1605.  
  1606. ++ cut -d= -f2-
  1607.  
  1608. + local src_id=app
  1609.  
  1610. + local dest_dir=/var/www/wordpress
  1611.  
  1612. + ynh_setup_source /var/www/wordpress
  1613.  
  1614. + sudo yunohost app setting wordpress final_path --value=/var/www/wordpress --quiet
  1615.  
  1616. + ynh_app_setting_set wordpress final_path /var/www/wordpress
  1617.  
  1618. + sudo yunohost app setting wordpress mysqlpwd --value=Q7rE7pggrvzQ1ZwyirQ3LgzD --quiet
  1619.  
  1620. + ynh_app_setting_set wordpress mysqlpwd Q7rE7pggrvzQ1ZwyirQ3LgzD
  1621.  
  1622. + mysql -u root --password=LEpZvLqCJ0 -B ''
  1623.  
  1624. + ynh_mysql_connect_as root LEpZvLqCJ0 ''
  1625.  
  1626. ++ sudo cat /etc/yunohost/mysql
  1627.  
  1628. + ynh_mysql_execute_as_root 'CREATE DATABASE wordpress; GRANT ALL PRIVILEGES ON wordpress.* TO '\''wordpress'\''@'\''localhost'\'' IDENTIFIED BY '\''Q7rE7pggrvzQ1ZwyirQ3LgzD'\'' WITH GRANT OPTION;'
  1629.  
  1630. + sql+=' WITH GRANT OPTION;'
  1631.  
  1632. + sql+=' IDENTIFIED BY '\''Q7rE7pggrvzQ1ZwyirQ3LgzD'\'''
  1633.  
  1634. + [[ -n Q7rE7pggrvzQ1ZwyirQ3LgzD ]]
  1635.  
  1636. + sql+=' GRANT ALL PRIVILEGES ON wordpress.* TO '\''wordpress'\''@'\''localhost'\'''
  1637.  
  1638. + [[ 3 -gt 1 ]]
  1639.  
  1640. + local 'sql=CREATE DATABASE wordpress;'
  1641.  
  1642. + local db=wordpress
  1643.  
  1644. + ynh_mysql_create_db wordpress wordpress Q7rE7pggrvzQ1ZwyirQ3LgzD
  1645.  
  1646. + db_pwd=Q7rE7pggrvzQ1ZwyirQ3LgzD
  1647.  
  1648. + local new_db_pwd=Q7rE7pggrvzQ1ZwyirQ3LgzD
  1649.  
  1650. ++ dd if=/dev/urandom bs=1 count=200
  1651.  
  1652. ++ tr -c -d A-Za-z0-9
  1653.  
  1654. ++ sed -n 's/\(.\{24\}\).*/\1/p'
  1655.  
  1656. ++ ynh_string_random
  1657.  
  1658. + local db_name=wordpress
  1659.  
  1660. + local db_user=wordpress
  1661.  
  1662. + ynh_mysql_setup_db wordpress wordpress
  1663.  
  1664. + sudo yunohost app setting wordpress db_name --value=wordpress --quiet
  1665.  
  1666. + ynh_app_setting_set wordpress db_name wordpress
  1667.  
  1668. + db_name=wordpress
  1669.  
  1670. ++ echo wordpress
  1671.  
  1672. ++ local dbid=wordpress
  1673.  
  1674. ++ ynh_sanitize_dbid wordpress
  1675.  
  1676. + sudo yunohost app setting wordpress apt_dependencies --value=php5-cli --quiet
  1677.  
  1678. + ynh_app_setting_set wordpress apt_dependencies php5-cli
  1679.  
  1680. + rm /tmp/wordpress-ynh-deps.control
  1681.  
  1682. + dpkg-query -W -f '${Status}' wordpress-ynh-deps
  1683.  
  1684. + grep -c 'ok installed'
  1685.  
  1686. + ynh_package_is_installed wordpress-ynh-deps
  1687.  
  1688. + rm -rf /tmp/tmp.CUhbSeU6wr
  1689.  
  1690. + [[ -n /tmp/tmp.CUhbSeU6wr ]]
  1691.  
  1692. + sudo apt-get -y -qq --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
  1693.  
  1694. + DEBIAN_FRONTEND=noninteractive
  1695.  
  1696. + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
  1697.  
  1698. + ynh_package_install -f
  1699.  
  1700. Setting up wordpress-ynh-deps (4.9.1~ynh1) ...
  1701.  
  1702. Unpacking wordpress-ynh-deps (4.9.1~ynh1) ...
  1703.  
  1704. Preparing to unpack .../wordpress-ynh-deps_4.9.1~ynh1_all.deb ...
  1705.  
  1706. (Reading database ... 53755 files and directories currently installed.)
  1707.  
  1708. Selecting previously unselected package wordpress-ynh-deps.
  1709.  
  1710. + sudo dpkg --force-depends -i ./wordpress-ynh-deps_4.9.1~ynh1_all.deb
  1711.  
  1712. + equivs-build ./control
  1713.  
  1714. + cd /tmp/tmp.CUhbSeU6wr
  1715.  
  1716. + cp /tmp/wordpress-ynh-deps.control /tmp/tmp.CUhbSeU6wr/control
  1717.  
  1718. + local TMPDIR=/tmp/tmp.CUhbSeU6wr
  1719.  
  1720. ++ mktemp -d
  1721.  
  1722. + sudo apt-get -y -qq update
  1723.  
  1724. + DEBIAN_FRONTEND=noninteractive
  1725.  
  1726. + ynh_apt update
  1727.  
  1728. + ynh_package_update
  1729.  
  1730. + [[ -z 4.9.1~ynh1 ]]
  1731.  
  1732. + [[ -z wordpress-ynh-deps ]]
  1733.  
  1734. + local pkgversion=4.9.1~ynh1
  1735.  
  1736. ++ grep '^Version: ' /tmp/wordpress-ynh-deps.control
  1737.  
  1738. ++ cut '-d ' -f 2
  1739.  
  1740. + local pkgname=wordpress-ynh-deps
  1741.  
  1742. ++ grep '^Package: ' /tmp/wordpress-ynh-deps.control
  1743.  
  1744. ++ cut '-d ' -f 2
  1745.  
  1746. + dpkg-query -W -f '${Status}' equivs
  1747.  
  1748. + grep -c 'ok installed'
  1749.  
  1750. + ynh_package_is_installed equivs
  1751.  
  1752. + local controlfile=/tmp/wordpress-ynh-deps.control
  1753.  
  1754. + ynh_package_install_from_equivs /tmp/wordpress-ynh-deps.control
  1755.  
  1756. + cat
  1757.  
  1758. + local dep_app=wordpress
  1759.  
  1760. + '[' 10 -eq 0 ']'
  1761.  
  1762. + local version=4.9.1~ynh1
  1763.  
  1764. ++ grep '\"version\": ' ../manifest.json
  1765.  
  1766. ++ cut -d '"' -f 4
  1767.  
  1768. + '[' '!' -e ../manifest.json ']'
  1769.  
  1770. + local manifest_path=../manifest.json
  1771.  
  1772. + local dependencies=php5-cli
  1773.  
  1774. + ynh_install_app_dependencies php5-cli
  1775.  
  1776. + sudo yunohost app setting wordpress multisite --value=0 --quiet
  1777.  
  1778. + ynh_app_setting_set wordpress multisite 0
  1779.  
  1780. + sudo yunohost app setting wordpress language --value=en_US --quiet
  1781.  
  1782. + ynh_app_setting_set wordpress language en_US
  1783.  
  1784. + sudo yunohost app setting wordpress is_public --value=1 --quiet
  1785.  
  1786. + ynh_app_setting_set wordpress is_public 1
  1787.  
  1788. + sudo yunohost app setting wordpress admin --value=touvr --quiet
  1789.  
  1790. + ynh_app_setting_set wordpress admin touvr
  1791.  
  1792. + sudo yunohost app setting wordpress path --value=/wp --quiet
  1793.  
  1794. + ynh_app_setting_set wordpress path /wp
  1795.  
  1796. + sudo yunohost app setting wordpress domain --value=testyzcesty.tk --quiet
  1797.  
  1798. + ynh_app_setting_set wordpress domain testyzcesty.tk
  1799.  
  1800. + '[' /wp == / ']'
  1801.  
  1802. + sudo yunohost app register-url wordpress testyzcesty.tk /wp
  1803.  
  1804. + local path=/wp
  1805.  
  1806. + local domain=testyzcesty.tk
  1807.  
  1808. + local app=wordpress
  1809.  
  1810. + ynh_webpath_register wordpress testyzcesty.tk /wp
  1811.  
  1812. True
  1813.  
  1814. + sudo yunohost domain url-available testyzcesty.tk /wp
  1815.  
  1816. + local path=/wp
  1817.  
  1818. + local domain=testyzcesty.tk
  1819.  
  1820. + ynh_webpath_available testyzcesty.tk /wp
  1821.  
  1822. + path_url=/wp
  1823.  
  1824. ++ echo /wp
  1825.  
  1826. ++ '[' p == / ']'
  1827.  
  1828. ++ '[' / '!=' / ']'
  1829.  
  1830. ++ test -n /wp
  1831.  
  1832. ++ local path_url=/wp
  1833.  
  1834. ++ ynh_normalize_url_path /wp
  1835.  
  1836. + test '!' -e /var/www/wordpress
  1837.  
  1838. + final_path=/var/www/wordpress
  1839.  
  1840. + app=wordpress
  1841.  
  1842. + is_public=1
  1843.  
  1844. + multisite=0
  1845.  
  1846. + language=en_US
  1847.  
  1848. + admin_wordpress=touvr
  1849.  
  1850. + path_url=/wp
  1851.  
  1852. + domain=testyzcesty.tk
  1853.  
  1854. + trap ynh_exit_properly EXIT
  1855.  
  1856. + set -eu
  1857.  
  1858. + ynh_abort_if_errors
  1859.  
  1860. ++ . /usr/share/yunohost/helpers.d/utils
  1861.  
  1862. ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
  1863.  
  1864. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1865.  
  1866. ++ . /usr/share/yunohost/helpers.d/user
  1867.  
  1868. ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
  1869.  
  1870. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1871.  
  1872. ++ . /usr/share/yunohost/helpers.d/system
  1873.  
  1874. ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
  1875.  
  1876. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1877.  
  1878. ++ . /usr/share/yunohost/helpers.d/string
  1879.  
  1880. ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
  1881.  
  1882. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1883.  
  1884. ++ . /usr/share/yunohost/helpers.d/setting
  1885.  
  1886. ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
  1887.  
  1888. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1889.  
  1890. ++ . /usr/share/yunohost/helpers.d/print
  1891.  
  1892. ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
  1893.  
  1894. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1895.  
  1896. ++ . /usr/share/yunohost/helpers.d/package
  1897.  
  1898. ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
  1899.  
  1900. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1901.  
  1902. ++ . /usr/share/yunohost/helpers.d/network
  1903.  
  1904. ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
  1905.  
  1906. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1907.  
  1908. +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
  1909.  
  1910. ++ . /usr/share/yunohost/helpers.d/mysql
  1911.  
  1912. ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
  1913.  
  1914. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1915.  
  1916. ++ . /usr/share/yunohost/helpers.d/ip
  1917.  
  1918. ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
  1919.  
  1920. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1921.  
  1922. +++ CAN_BIND=1
  1923.  
  1924. ++ . /usr/share/yunohost/helpers.d/filesystem
  1925.  
  1926. ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
  1927.  
  1928. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1929.  
  1930. ++ . /usr/share/yunohost/helpers.d/backend
  1931.  
  1932. ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
  1933.  
  1934. ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
  1935.  
  1936. +++ run-parts --list /usr/share/yunohost/helpers.d
  1937.  
  1938. + source /usr/share/yunohost/helpers
  1939.  
  1940. + source _common.sh
  1941.  
  1942. Executing script '/var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/install'...
  1943.  
  1944. Checking required packages for wordpress...
  1945.  
  1946. Done
  1947.  
  1948. Extracting...
  1949.  
  1950. Downloading...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement