Lines 176-195
Link Here
|
176 |
} |
176 |
} |
177 |
|
177 |
|
178 |
pkg_postinst() { |
178 |
pkg_postinst() { |
179 |
if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
179 |
ewarn "!! IMPORTANT !!" |
180 |
ewarn "!! IMPORTANT !!" |
180 |
ewarn " " |
181 |
ewarn " " |
181 |
ewarn "Make sure you check your configuration file in /etc/${PN}.conf" |
182 |
ewarn "${PN} configuration files have changed !" |
182 |
ewarn "For more information about configuration options, see:" |
183 |
ewarn " " |
183 |
ewarn " " |
184 |
ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
184 |
ewarn " https://docs.mongodb.org/manual/reference/configuration-options/" |
185 |
ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
185 |
ewarn " " |
186 |
ewarn " " |
186 |
ewarn "If upgrading from an older deployment of ${PN}, Make sure you also follow" |
187 |
ewarn "Make sure you also follow the upgrading process :" |
187 |
ewarn "the upgrading process :" |
188 |
ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
188 |
ewarn " https://docs.mongodb.org/manual/release-notes/3.2-upgrade/" |
189 |
ewarn " " |
189 |
ewarn " " |
190 |
ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
190 |
ewarn "MongoDB 3.2 uses the WiredTiger storage engine by default for new deployments. For" |
191 |
ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
191 |
ewarn "existing deployments in the version 3.0 series, MongoDB 3.2 will use the mmapv1 " |
192 |
ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
192 |
ewarn "storage engine if your existing databases were created with it. If you want to convert" |
193 |
ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
193 |
ewarn "from the mmapv1 storage engine to WiredTiger, you will need to dump your databases" |
194 |
fi |
194 |
ewarn "with mongodump. Set the storage engine and specify a new dbpath in /etc/${PN}.conf." |
|
|
195 |
ewarn "Create the dbpath and chmod it so that user mongodb has owner and group rwx permissions." |
196 |
ewarn "You may also want to change the name of the logfile that mongod writes to." |
197 |
ewarn " " |
198 |
ewarn " https://docs.mongodb.org/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
199 |
ewarn " " |
200 |
ewarn "After emerging this package, remember to start the mongod server again. If needed, " |
201 |
ewarn "restore databases with mongorestore." |
195 |
} |
202 |
} |