This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://www.nginx.com/resources/wiki/start/topics/tutorials/install/ | |
# Switch to root | |
sudo su | |
# Add the mainline release | |
echo "deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx | |
deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx" > /etc/apt/sources.list.d/nginx.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Quotes and prepares fields and values for an SQL UPDATE statement | |
* | |
* @param Model $Model The model to prepare fields for. | |
* @param array $fields The fields to update. | |
* @param bool $quoteValues If values should be quoted, or treated as SQL snippets | |
* @param bool $alias Include the model alias in the field name | |
* @return array Fields and values, quoted and prepared | |
*/ | |
protected function _prepareUpdateFields(Model $Model, $fields, $quoteValues = true, $alias = false) { |