Advertisement
Guest User

Untitled

a guest
Mar 28th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 23.45 KB | None | 0 0
  1. root@debian:/var/lib/lxc# lxc-stop -n stretch-nextdom-apt-installed && rm -rf stretch-nextdom-apt-installed && tar xfzp stretch-nextdom-apt-installed-2019-03-24.tgz && lxc-start -n stretch-nextdom-apt-installed && lxc-attach -n stretch-nextdom-apt-installed
  2. root@stretch-nextdom-apt-installed:/#
  3. root@stretch-nextdom-apt-installed:/#
  4. root@stretch-nextdom-apt-installed:/#
  5. root@stretch-nextdom-apt-installed:/#
  6. root@stretch-nextdom-apt-installed:/# apt update && apt -y upgrade
  7. Réception de:1 http://debian-dsddsds.nextdom.org/debian nextdom InRelease [6 557 B]
  8. Réception de:2 http://security.debian.org stretch/updates InRelease [94,3 kB]
  9. Réception de:4 http://debian-dsddsds.nextdom.org/debian nextdom/main amd64 Packages [1 345 B]
  10. Ign:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease
  11. Atteint:5 http://cdn-fastly.deb.debian.org/debian stretch Release
  12. Réception de:6 http://security.debian.org stretch/updates/main amd64 Packages [481 kB]
  13. 583 ko réceptionnés en 0s (844 ko/s)
  14. Lecture des listes de paquets... Fait
  15. Construction de l'arbre des dépendances
  16. Lecture des informations d'état... Fait
  17. 63 packages can be upgraded. Run 'apt list --upgradable' to see them.
  18. Lecture des listes de paquets... Fait
  19. Construction de l'arbre des dépendances
  20. Lecture des informations d'état... Fait
  21. Calcul de la mise à  jour... Fait
  22. Les paquets suivants seront mis à  jour :
  23.   base-files dirmngr gnupg gnupg-agent gnupg-l10n gpgv libapache2-mod-php7.0 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev libc6-i386 libcups2 libldb1 libopenjp2-7 libsmbclient libsox-fmt-alsa libsox-fmt-base
  24.   libsox-fmt-mp3 libsox2 libssh-gcrypt-4 libssl1.0.2 libwayland-client0 libwayland-cursor0 libwayland-server0 libwbclient0 linux-libc-dev locales multiarch-support nextdom nextdom-common nextdom-mysql openssh-client
  25.   openssh-server openssh-sftp-server php7.0 php7.0-cli php7.0-common php7.0-curl php7.0-dev php7.0-gd php7.0-imap php7.0-json php7.0-ldap php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-readline
  26.   php7.0-snmp php7.0-soap php7.0-xml php7.0-xmlrpc php7.0-zip python-ldb python-samba samba-common samba-common-bin samba-libs smbclient sox tzdata
  27. 63 mis à  jour, 0 nouvellement installés, 0 à  enlever et 0 non mis à  jour.
  28. Il est nécessaire de prendre 95,0 Mo dans les archives.
  29. Après cette opération, 122 ko d'espace disque supplémentaires seront utilisés.
  30. Réception de:1 http://debian-dsddsds.nextdom.org/debian nextdom/main amd64 nextdom-mysql all 1.0.0 [3 246 B]
  31. Réception de:2 http://debian-dsddsds.nextdom.org/debian nextdom/main amd64 nextdom-common all 1.0.0 [3 396 B]
  32. Réception de:3 http://security.debian.org stretch/updates/main amd64 python-ldb amd64 2:1.1.27-1+deb9u1 [34,8 kB]
  33. Réception de:4 http://debian-dsddsds.nextdom.org/debian nextdom/main amd64 nextdom all 0.1.4 [59,7 MB]
  34. Réception de:5 http://security.debian.org stretch/updates/main amd64 libldb1 amd64 2:1.1.27-1+deb9u1 [113 kB]
  35. Réception de:6 http://security.debian.org stretch/updates/main amd64 libssl1.0.2 amd64 1.0.2r-1~deb9u1 [1 302 kB]
  36. Réception de:17 http://security.debian.org stretch/updates/main amd64 openssh-sftp-server amd64 1:7.4p1-10+deb9u6 [39,7 kB]
  37. Réception de:18 http://security.debian.org stretch/updates/main amd64 openssh-server amd64 1:7.4p1-10+deb9u6 [332 kB]
  38. Réception de:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 base-files amd64 9.9+deb9u8 [67,4 kB]
  39. Réception de:20 http://security.debian.org stretch/updates/main amd64 openssh-client amd64 1:7.4p1-10+deb9u6 [781 kB]
  40. Réception de:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libc6-i386 amd64 2.24-11+deb9u4 [2 597 kB]
  41. Réception de:43 http://security.debian.org stretch/updates/main amd64 php7.0-zip amd64 7.0.33-0+deb9u3 [19,9 kB]
  42. Réception de:44 http://security.debian.org stretch/updates/main amd64 php7.0-xmlrpc amd64 7.0.33-0+deb9u3 [12,6 kB]
  43. Réception de:45 http://security.debian.org stretch/updates/main amd64 php7.0-xml amd64 7.0.33-0+deb9u3 [112 kB]
  44. Réception de:46 http://security.debian.org stretch/updates/main amd64 php7.0-soap amd64 7.0.33-0+deb9u3 [113 kB]
  45. Réception de:47 http://security.debian.org stretch/updates/main amd64 php7.0-snmp amd64 7.0.33-0+deb9u3 [18,7 kB]
  46. Réception de:48 http://security.debian.org stretch/updates/main amd64 php7.0-readline amd64 7.0.33-0+deb9u3 [12,2 kB]
  47. Réception de:49 http://security.debian.org stretch/updates/main amd64 php7.0-opcache amd64 7.0.33-0+deb9u3 [77,5 kB]
  48. Réception de:50 http://security.debian.org stretch/updates/main amd64 php7.0-mysql amd64 7.0.33-0+deb9u3 [124 kB]
  49. Réception de:51 http://security.debian.org stretch/updates/main amd64 php7.0-mcrypt amd64 7.0.33-0+deb9u3 [14,3 kB]
  50. Réception de:52 http://security.debian.org stretch/updates/main amd64 php7.0-mbstring amd64 7.0.33-0+deb9u3 [466 kB]
  51. Réception de:53 http://security.debian.org stretch/updates/main amd64 php7.0-ldap amd64 7.0.33-0+deb9u3 [21,0 kB]
  52. Réception de:54 http://security.debian.org stretch/updates/main amd64 php7.0-json amd64 7.0.33-0+deb9u3 [17,0 kB]
  53. Réception de:55 http://security.debian.org stretch/updates/main amd64 php7.0-imap amd64 7.0.33-0+deb9u3 [29,5 kB]
  54. Réception de:56 http://security.debian.org stretch/updates/main amd64 php7.0-gd amd64 7.0.33-0+deb9u3 [27,2 kB]
  55. Réception de:57 http://security.debian.org stretch/updates/main amd64 php7.0-dev amd64 7.0.33-0+deb9u3 [517 kB]
  56. Réception de:58 http://security.debian.org stretch/updates/main amd64 php7.0-curl amd64 7.0.33-0+deb9u3 [27,4 kB]
  57. Réception de:59 http://security.debian.org stretch/updates/main amd64 libapache2-mod-php7.0 amd64 7.0.33-0+deb9u3 [1 224 kB]
  58. Réception de:60 http://security.debian.org stretch/updates/main amd64 php7.0-cli amd64 7.0.33-0+deb9u3 [1 284 kB]
  59. Réception de:61 http://security.debian.org stretch/updates/main amd64 php7.0-common amd64 7.0.33-0+deb9u3 [882 kB]
  60. Réception de:62 http://security.debian.org stretch/updates/main amd64 php7.0 all 7.0.33-0+deb9u3 [54,7 kB]
  61. Réception de:63 http://security.debian.org stretch/updates/main amd64 libopenjp2-7 amd64 2.1.2-1.1+deb9u3 [122 kB]
  62. Réception de:9 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libc6-dev amd64 2.24-11+deb9u4 [2 364 kB]
  63. Réception de:10 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libc-dev-bin amd64 2.24-11+deb9u4 [259 kB]
  64. Réception de:11 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 linux-libc-dev amd64 4.9.144-3 [1 394 kB]
  65. Réception de:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libc6 amd64 2.24-11+deb9u4 [2 694 kB]
  66. Réception de:13 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libc-bin amd64 2.24-11+deb9u4 [782 kB]
  67. Réception de:14 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libcups2 amd64 2.2.1-8+deb9u3 [306 kB]
  68. Réception de:15 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python-samba amd64 2:4.5.16+dfsg-1 [1 362 kB]
  69. Réception de:16 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libwbclient0 amd64 2:4.5.16+dfsg-1 [124 kB]
  70. Réception de:19 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 smbclient amd64 2:4.5.16+dfsg-1 [410 kB]
  71. Réception de:21 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 samba-common-bin amd64 2:4.5.16+dfsg-1 [603 kB]
  72. Réception de:22 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libsmbclient amd64 2:4.5.16+dfsg-1 [151 kB]
  73. Réception de:23 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 samba-libs amd64 2:4.5.16+dfsg-1 [5 233 kB]
  74. Réception de:24 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 samba-common all 2:4.5.16+dfsg-1 [174 kB]
  75. Réception de:25 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 multiarch-support amd64 2.24-11+deb9u4 [201 kB]
  76. Réception de:26 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gpgv amd64 2.1.18-8~deb9u4 [481 kB]
  77. Réception de:27 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 tzdata all 2018i-0+deb9u1 [273 kB]
  78. Réception de:28 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gnupg-l10n all 2.1.18-8~deb9u4 [893 kB]
  79. Réception de:29 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 dirmngr amd64 2.1.18-8~deb9u4 [597 kB]
  80. Réception de:30 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gnupg amd64 2.1.18-8~deb9u4 [1 128 kB]
  81. Réception de:31 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gnupg-agent amd64 2.1.18-8~deb9u4 [554 kB]
  82. Réception de:32 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libc-l10n all 2.24-11+deb9u4 [820 kB]
  83. Réception de:33 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 locales all 2.24-11+deb9u4 [3 289 kB]
  84. Réception de:34 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 sox amd64 14.4.1-5+deb9u1 [138 kB]
  85. Réception de:35 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libsox2 amd64 14.4.1-5+deb9u1 [261 kB]
  86. Réception de:36 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libsox-fmt-base amd64 14.4.1-5+deb9u1 [68,6 kB]
  87. Réception de:37 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libsox-fmt-alsa amd64 14.4.1-5+deb9u1 [46,9 kB]
  88. Réception de:38 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libsox-fmt-mp3 amd64 14.4.1-5+deb9u1 [52,0 kB]
  89. Réception de:39 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libssh-gcrypt-4 amd64 0.7.3-2+deb9u2 [170 kB]
  90. Réception de:40 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libwayland-client0 amd64 1.12.0-1+deb9u1 [25,1 kB]
  91. Réception de:41 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libwayland-cursor0 amd64 1.12.0-1+deb9u1 [13,5 kB]
  92. Réception de:42 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libwayland-server0 amd64 1.12.0-1+deb9u1 [30,6 kB]
  93. 95,0 Mo réceptionnés en 8s (11,3 Mo/s)
  94. Extracting templates from packages: 100%
  95. Preconfiguring packages ...
  96. (Lecture de la base de données... 84955 fichiers et répertoires déjà  installés.)
  97. Préparation du dépaquetage de .../base-files_9.9+deb9u8_amd64.deb ...
  98. Dépaquetage de base-files (9.9+deb9u8) sur (9.9+deb9u7) ...
  99. Paramétrage de base-files (9.9+deb9u8) ...
  100. Installation de la nouvelle version du fichier de configuration /etc/debian_version ...
  101. (Lecture de la base de données... 84955 fichiers et répertoires déjà  installés.)
  102. Préparation du dépaquetage de .../libc6-i386_2.24-11+deb9u4_amd64.deb ...
  103. Dépaquetage de libc6-i386 (2.24-11+deb9u4) sur (2.24-11+deb9u3) ...
  104. Préparation du dépaquetage de .../libc6-dev_2.24-11+deb9u4_amd64.deb ...
  105. Dépaquetage de libc6-dev:amd64 (2.24-11+deb9u4) sur (2.24-11+deb9u3) ...
  106. Préparation du dépaquetage de .../libc-dev-bin_2.24-11+deb9u4_amd64.deb ...
  107. Dépaquetage de libc-dev-bin (2.24-11+deb9u4) sur (2.24-11+deb9u3) ...
  108. Préparation du dépaquetage de .../linux-libc-dev_4.9.144-3_amd64.deb ...
  109. Dépaquetage de linux-libc-dev:amd64 (4.9.144-3) sur (4.9.130-2) ...
  110. Préparation du dépaquetage de .../libc6_2.24-11+deb9u4_amd64.deb ...
  111. Dépaquetage de libc6:amd64 (2.24-11+deb9u4) sur (2.24-11+deb9u3) ...
  112. Paramétrage de libc6:amd64 (2.24-11+deb9u4) ...
  113. (Lecture de la base de données... 84955 fichiers et répertoires déjà  installés.)
  114. Préparation du dépaquetage de .../libc-bin_2.24-11+deb9u4_amd64.deb ...
  115. Dépaquetage de libc-bin (2.24-11+deb9u4) sur (2.24-11+deb9u3) ...
  116. Paramétrage de libc-bin (2.24-11+deb9u4) ...
  117. (Lecture de la base de données... 84955 fichiers et répertoires déjà  installés.)
  118. Préparation du dépaquetage de .../00-python-ldb_2%3a1.1.27-1+deb9u1_amd64.deb ...
  119. Dépaquetage de python-ldb (2:1.1.27-1+deb9u1) sur (2:1.1.27-1+b1) ...
  120. Préparation du dépaquetage de .../01-libldb1_2%3a1.1.27-1+deb9u1_amd64.deb ...
  121. Dépaquetage de libldb1:amd64 (2:1.1.27-1+deb9u1) sur (2:1.1.27-1+b1) ...
  122. Préparation du dépaquetage de .../02-libcups2_2.2.1-8+deb9u3_amd64.deb ...
  123. Dépaquetage de libcups2:amd64 (2.2.1-8+deb9u3) sur (2.2.1-8+deb9u2) ...
  124. Préparation du dépaquetage de .../03-python-samba_2%3a4.5.16+dfsg-1_amd64.deb ...
  125. Dépaquetage de python-samba (2:4.5.16+dfsg-1) sur (2:4.5.12+dfsg-2+deb9u4) ...
  126. Préparation du dépaquetage de .../04-libwbclient0_2%3a4.5.16+dfsg-1_amd64.deb ...
  127. Dépaquetage de libwbclient0:amd64 (2:4.5.16+dfsg-1) sur (2:4.5.12+dfsg-2+deb9u4) ...
  128. Préparation du dépaquetage de .../05-smbclient_2%3a4.5.16+dfsg-1_amd64.deb ...
  129. Dépaquetage de smbclient (2:4.5.16+dfsg-1) sur (2:4.5.12+dfsg-2+deb9u4) ...
  130. Préparation du dépaquetage de .../06-samba-common-bin_2%3a4.5.16+dfsg-1_amd64.deb ...
  131. Dépaquetage de samba-common-bin (2:4.5.16+dfsg-1) sur (2:4.5.12+dfsg-2+deb9u4) ...
  132. Préparation du dépaquetage de .../07-libsmbclient_2%3a4.5.16+dfsg-1_amd64.deb ...
  133. Dépaquetage de libsmbclient:amd64 (2:4.5.16+dfsg-1) sur (2:4.5.12+dfsg-2+deb9u4) ...
  134. Préparation du dépaquetage de .../08-samba-libs_2%3a4.5.16+dfsg-1_amd64.deb ...
  135. Dépaquetage de samba-libs:amd64 (2:4.5.16+dfsg-1) sur (2:4.5.12+dfsg-2+deb9u4) ...
  136. Préparation du dépaquetage de .../09-samba-common_2%3a4.5.16+dfsg-1_all.deb ...
  137. Dépaquetage de samba-common (2:4.5.16+dfsg-1) sur (2:4.5.12+dfsg-2+deb9u4) ...
  138. Préparation du dépaquetage de .../10-nextdom-mysql_1.0.0_all.deb ...
  139. + echo '>>>>>>> /var/lib/dpkg/tmp.ci/preinst upgrade 0.1.2 1.0.0 <<<<<<<'
  140. >>>>>>> /var/lib/dpkg/tmp.ci/preinst upgrade 0.1.2 1.0.0 <<<<<<<
  141. + mysql -u root -e 'SHOW DATABASES;'
  142. +--------------------+
  143. | Database           |
  144. +--------------------+
  145. | information_schema |
  146. | mysql              |
  147. | performance_schema |
  148. +--------------------+
  149. + case "$1" in
  150. + nextdom_secret=/var/lib/nextdom/config/common.config.php
  151. + [[ -f /var/lib/nextdom/config/common.config.php ]]
  152. ++ grep ''\''host'\''' /var/lib/nextdom/config/common.config.php
  153. ++ awk -F \' '{print $2}'
  154. ++ awk -F '=>' '{print $2}'
  155. + nextdom_host=localhost
  156. ++ grep ''\''port'\''' /var/lib/nextdom/config/common.config.php
  157. ++ awk -F \' '{print $2}'
  158. ++ awk -F '=>' '{print $2}'
  159. + nextdom_port=3306
  160. ++ grep ''\''dbname'\''' /var/lib/nextdom/config/common.config.php
  161. ++ awk -F \' '{print $2}'
  162. ++ awk -F '=>' '{print $2}'
  163. + nextdom_dbname=nextdom
  164. ++ grep ''\''username'\''' /var/lib/nextdom/config/common.config.php
  165. ++ awk -F \' '{print $2}'
  166. ++ awk -F '=>' '{print $2}'
  167. + nextdom_username=nextdom
  168. ++ grep ''\''password'\''' /var/lib/nextdom/config/common.config.php
  169. ++ awk -F \' '{print $2}'
  170. ++ awk -F '=>' '{print $2}'
  171. + nextdom_password=1aad0d0fb25d34b
  172. + [[ localhost != '' ]]
  173. + sed -i 's#^MYSQL_HOSTNAME=.*#MYSQL_HOSTNAME="localhost"#g' /etc/nextdom/mysql/secret
  174. + [[ 3306 != '' ]]
  175. + sed -i 's#^MYSQL_PORT=.*#MYSQL_PORT="3306"#g' /etc/nextdom/mysql/secret
  176. + [[ nextdom != '' ]]
  177. + sed -i 's#^MYSQL_NEXTDOM_DB=.*#MYSQL_NEXTDOM_DB="nextdom"#g' /etc/nextdom/mysql/secret
  178. + [[ nextdom != '' ]]
  179. + sed -i 's#^MYSQL_NEXTDOM_USER=.*#MYSQL_NEXTDOM_USER="nextdom"#g' /etc/nextdom/mysql/secret
  180. + [[ 1aad0d0fb25d34b != '' ]]
  181. + sed -i 's#^MYSQL_NEXTDOM_PASSWD=.*#MYSQL_NEXTDOM_PASSWD="1aad0d0fb25d34b"#g' /etc/nextdom/mysql/secret
  182. + cp -ax /etc/nextdom/mysql/secret /tmp/nextdom-secret
  183. + chmod 600 /tmp/nextdom_secret
  184. chmod: impossible d'accéder à  '/tmp/nextdom_secret': Aucun fichier ou dossier de ce type
  185. + [[ localhost = \l\o\c\a\l\h\o\s\t ]]
  186. ++ mysql -u root -e 'SELECT user, host, db, select_priv, insert_priv, grant_priv FROM mysql.db WHERE user='\''nextdom'\'' AND host='\''localhost'\'' AND db='\''nextdom'\'';'
  187. ++ wc -l
  188. + isOK=0
  189. + [[ 0 -eq 0 ]]
  190. + mysql -u root -e 'DROP USER IF EXISTS '\''nextdom'\''@'\''localhost'\'';'
  191. + mysql -u root -e 'CREATE USER '\''nextdom'\''@'\''localhost'\'' IDENTIFIED BY '\''1aad0d0fb25d34b'\'';'
  192. + mysql -u root -e 'GRANT ALL PRIVILEGES ON nextdom.* TO '\''nextdom'\''@'\''localhost'\'';'
  193. + mysql -u root -e 'SHOW GRANTS FOR '\''nextdom'\''@'\''localhost'\'';'
  194. +----------------------------------------------------------------------------------------------------------------+
  195. | Grants for nextdom@localhost                                                                                   |
  196. +----------------------------------------------------------------------------------------------------------------+
  197. | GRANT USAGE ON *.* TO 'nextdom'@'localhost' IDENTIFIED BY PASSWORD '*D638DAB1BB21CC5334C63E58A061631C2C201812' |
  198. | GRANT ALL PRIVILEGES ON `nextdom`.* TO 'nextdom'@'localhost'                                                   |
  199. +----------------------------------------------------------------------------------------------------------------+
  200. + mysqldump -u root --all-databases
  201. Dépaquetage de nextdom-mysql (1.0.0) sur (0.1.2) ...
  202. Préparation du dépaquetage de .../11-nextdom-common_1.0.0_all.deb ...
  203. Enabling site 000-default.
  204. To activate the new configuration, you need to run:
  205.   systemctl reload apache2
  206. + echo >>>>>>> /var/lib/dpkg/tmp.ci/preinst upgrade 0.1.2 1.0.0 <<<<<<<
  207. >>>>>>> /var/lib/dpkg/tmp.ci/preinst upgrade 0.1.2 1.0.0 <<<<<<<
  208. + mysql -u root -e SHOW GRANTS FOR 'nextdom'@'localhost';
  209. +----------------------------------------------------------------------------------------------------------------+
  210. | Grants for nextdom@localhost                                                                                   |
  211. +----------------------------------------------------------------------------------------------------------------+
  212. | GRANT USAGE ON *.* TO 'nextdom'@'localhost' IDENTIFIED BY PASSWORD '*D638DAB1BB21CC5334C63E58A061631C2C201812' |
  213. | GRANT ALL PRIVILEGES ON `nextdom`.* TO 'nextdom'@'localhost'                                                   |
  214. +----------------------------------------------------------------------------------------------------------------+
  215. Dépaquetage de nextdom-common (1.0.0) sur (0.1.2) ...
  216. Paramétrage de nextdom-mysql (1.0.0) ...
  217. + echo >>>>>>> /var/lib/dpkg/info/nextdom-mysql.postinst configure 0.1.2 <<<<<<<
  218. >>>>>>> /var/lib/dpkg/info/nextdom-mysql.postinst configure 0.1.2 <<<<<<<
  219. + mysql -u root -e SHOW DATABASES;
  220. +--------------------+
  221. | Database           |
  222. +--------------------+
  223. | information_schema |
  224. | mysql              |
  225. | performance_schema |
  226. +--------------------+
  227. Paramétrage de samba-common (2:4.5.16+dfsg-1) ...
  228. Paramétrage de libcups2:amd64 (2.2.1-8+deb9u3) ...
  229. Paramétrage de libldb1:amd64 (2:1.1.27-1+deb9u1) ...
  230. Paramétrage de libwbclient0:amd64 (2:4.5.16+dfsg-1) ...
  231. Paramétrage de samba-libs:amd64 (2:4.5.16+dfsg-1) ...
  232. Paramétrage de libsmbclient:amd64 (2:4.5.16+dfsg-1) ...
  233. Paramétrage de smbclient (2:4.5.16+dfsg-1) ...
  234. Paramétrage de nextdom-common (1.0.0) ...
  235. + echo >>>>>>> /var/lib/dpkg/info/nextdom-common.postinst configure 0.1.2 <<<<<<<
  236. >>>>>>> /var/lib/dpkg/info/nextdom-common.postinst configure 0.1.2 <<<<<<<
  237. + mysql -u root -e SHOW GRANTS FOR 'nextdom'@'localhost';
  238. +----------------------------------------------------------------------------------------------------------------+
  239. | Grants for nextdom@localhost                                                                                   |
  240. +----------------------------------------------------------------------------------------------------------------+
  241. | GRANT USAGE ON *.* TO 'nextdom'@'localhost' IDENTIFIED BY PASSWORD '*D638DAB1BB21CC5334C63E58A061631C2C201812' |
  242. | GRANT ALL PRIVILEGES ON `nextdom`.* TO 'nextdom'@'localhost'                                                   |
  243. +----------------------------------------------------------------------------------------------------------------+
  244. (Lecture de la base de données... 84952 fichiers et répertoires déjà  installés.)
  245. Préparation du dépaquetage de .../archives/nextdom_0.1.4_all.deb ...
  246. + echo '>>>>>>> /var/lib/dpkg/tmp.ci/preinst upgrade 0.1.2 0.1.4 <<<<<<<'
  247. >>>>>>> /var/lib/dpkg/tmp.ci/preinst upgrade 0.1.2 0.1.4 <<<<<<<
  248. + mysql -u root -e 'SHOW DATABASES;'
  249. +--------------------+
  250. | Database           |
  251. +--------------------+
  252. | information_schema |
  253. | mysql              |
  254. | performance_schema |
  255. +--------------------+
  256. + dirn=/var/www/html
  257. + WEBSERVER_HOME=/usr/share/nextdom
  258. + case "$1" in
  259. + nextdom_secret=/var/lib/nextdom/config/common.config.php
  260. + [[ ! -f /var/lib/nextdom/config/common.config.php ]]
  261. ++ awk -F \' '{print $2}'
  262. ++ awk -F '=>' '{print $2}'
  263. ++ grep ''\''host'\''' /var/lib/nextdom/config/common.config.php
  264. + nextdom_host=localhost
  265. ++ awk -F '=>' '{print $2}'
  266. ++ grep ''\''port'\''' /var/lib/nextdom/config/common.config.php
  267. ++ awk -F \' '{print $2}'
  268. + nextdom_port=3306
  269. ++ grep ''\''dbname'\''' /var/lib/nextdom/config/common.config.php
  270. ++ awk -F \' '{print $2}'
  271. ++ awk -F '=>' '{print $2}'
  272. + nextdom_dbname=nextdom
  273. ++ grep ''\''username'\''' /var/lib/nextdom/config/common.config.php
  274. ++ awk -F \' '{print $2}'
  275. ++ awk -F '=>' '{print $2}'
  276. + nextdom_username=nextdom
  277. ++ grep ''\''password'\''' /var/lib/nextdom/config/common.config.php
  278. ++ awk -F \' '{print $2}'
  279. ++ awk -F '=>' '{print $2}'
  280. + nextdom_password=1aad0d0fb25d34b
  281. + [[ localhost = \l\o\c\a\l\h\o\s\t ]]
  282. + mysql -u root -e 'DROP USER IF EXISTS '\''nextdom'\''@'\''localhost'\'';'
  283. + mysql -u root -e 'CREATE USER '\''nextdom'\''@'\''localhost'\'' IDENTIFIED BY '\''1aad0d0fb25d34b'\'';'
  284. + mysql -u root -e 'GRANT ALL PRIVILEGES ON nextdom.* TO '\''nextdom'\''@'\''localhost'\'';'
  285. + mysql -u root -e 'SHOW GRANTS FOR '\''nextdom'\''@'\''localhost'\'';'
  286. +----------------------------------------------------------------------------------------------------------------+
  287. | Grants for nextdom@localhost                                                                                   |
  288. +----------------------------------------------------------------------------------------------------------------+
  289. | GRANT USAGE ON *.* TO 'nextdom'@'localhost' IDENTIFIED BY PASSWORD '*D638DAB1BB21CC5334C63E58A061631C2C201812' |
  290. | GRANT ALL PRIVILEGES ON `nextdom`.* TO 'nextdom'@'localhost'                                                   |
  291. +----------------------------------------------------------------------------------------------------------------+
  292. + [[ localhost = \l\o\c\a\l\h\o\s\t ]]
  293. + echo 'Restore DB...'
  294. Restore DB...
  295. + cat /tmp/nextdom-secret
  296. MYSQL_HOSTNAME="localhost"
  297. MYSQL_PORT="3306"
  298. MYSQL_SUBNET="localhost"
  299. #MYSQL_SUBNET="192.168.1.%"
  300. MYSQL_NEXTDOM_DB="nextdom"
  301. MYSQL_NEXTDOM_USER="nextdom"
  302. MYSQL_NEXTDOM_PASSWD="1aad0d0fb25d34b"
  303. + cat /var/lib/nextdom/config/common.config.php
  304. <?php
  305.  
  306. /* This file is part of Jeedom.
  307.  *
  308.  * Jeedom is free software: you can redistribute it and/or modify
  309.  * it under the terms of the GNU General Public License as published by
  310.  * the Free Software Foundation, either version 3 of the License, or
  311.  * (at your option) any later version.
  312.  *
  313.  * Jeedom is distributed in the hope that it will be useful,
  314.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  315.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  316.  * GNU General Public License for more details.
  317.  *
  318.  * You should have received a copy of the GNU General Public License
  319.  * along with Jeedom. If not, see <http://www.gnu.org/licenses/>.
  320.  */
  321.  
  322. /* * ********************* Debug **************** */
  323. define('DEBUG', 0);
  324.  
  325. /* * *********************** MySQL & Memcached ******************* */
  326. global $CONFIG;
  327. $CONFIG = array(
  328.     //MySQL parametres
  329.     'db' => array(
  330.         'host' => 'localhost',
  331.         'port' => '3306',
  332.         'dbname' => 'nextdom',
  333.         'username' => 'nextdom',
  334.         'password' => '1aad0d0fb25d34b',
  335.     ),
  336. );
  337.  
  338. + mysql -u root
  339. + cd /usr/share/nextdom/
  340. + sleep 600
  341.  
  342. Progression : [ 25%] [#################################################.....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement