Create a websites user.
sudo adduser --disabled-password --home /src/websites websites
Login and install dropbox.
sudo -s su - websites
| #!/opt/local/bin/bash | |
| # | |
| # Fixes ancient ruby on rails sites to use the ruby18 binary so they use 1.8.7. | |
| # | |
| pkg_alternatives manual ruby18-base | |
| gsed -i'.bak' -e '/env ruby/s/\/usr\/bin\/env ruby/\/opt\/local\/bin\/ruby18/g' about breakpointer console destroy generate plugin runner server process/reaper process/spawner |
| # This document describes updating the SmartOS boot_archive and /usr volumes. | |
| # | |
| # The boot_archive effectively contains /. If you want to make changes to SMF | |
| # or so forth, you need to update the boot_archive. | |
| # | |
| # If you want to add things to /usr, such as drivers, you will need to update | |
| # usr.lgz. It is compressed, so note the lofiadm -U and -C calls below. Once | |
| # you have updated usr.lgz you will need to copy it back to the mounted | |
| # boot_arhive. | |
| # |
| == Rules == | |
| On Infrastructure | |
| ----------------- | |
| There is one system, not a collection of systems. | |
| The desired state of the system should be a known quantity. | |
| The "known quantity" must be machine parseable. | |
| The actual state of the system must self-correct to the desired state. | |
| The only authoritative source for the actual state of the system is the system. | |
| The entire system must be deployable using source media and text files. |
| diff --git a/lang/spidermonkey/Makefile b/lang/spidermonkey/Makefile | |
| index 1f1315b..b9db45c 100644 | |
| --- a/lang/spidermonkey/Makefile | |
| +++ b/lang/spidermonkey/Makefile | |
| @@ -1,8 +1,8 @@ | |
| # $NetBSD: Makefile,v 1.27 2013/07/15 02:02:24 ryoon Exp $ | |
| -DISTNAME= js-1.8.0-rc1 | |
| -PKGNAME= spidermonkey-1.8.0rc1 | |
| -PKGREVISION= 4 |
| #!/opt/local/bin/bash | |
| # | |
| # Script which fixes users php fcgi wrapper scripts to use the correct php binary. | |
| # | |
| # Copyright (c) 2014 Jacques Marneweck. All rights rserved. | |
| # Copyright (c) 2014 Kaizen Garden. All rights reserved. | |
| # | |
| set -o errexit | |
| set -o pipefail |
Root cause is that Postgres is in read only mode (sdc-login manatee) to edit one of the node-manatee files to force not being in readonly mode. Quite a bit of hand holding required to get moray's db in place and set perms and create one table.
Copy sdc-manatee-stat from Ryan Nelson to /opt/smartdc/bin/
| # Author: Aram Grigorian <aram@opendns.com> | |
| # https://github.com/aramg | |
| # https://github.com/opendns | |
| # | |
| # By default, nginx will close upstream connections after every request. | |
| # The upstream-keepalive module tries to remedy this by keeping a certain minimum number of | |
| # persistent connections open at all times to upstreams. These connections are re-used for | |
| # all requests, regardless of downstream connection source. There are options available | |
| # for load balacing clients to the same upstreams more consistently. | |
| # This is all designed around the reverse proxy case, which is nginxs main purpose. |
| # | |
| # Varnish AWS S3 Gateway VCL | |
| # | |
| # Allows global read (GET, HEAD) and ACL protected writes (POST, PUT, DELETE). | |
| # When writing, pass in Content-Type and Content-MD5, both are optional. | |
| # | |
| # Params: | |
| # | |
| # %BUCKET% - S3 bucket name, S3 host may be regional | |
| # %ACCESS_ID% - IAM access ID for bucket |
Please see http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4513568 which explains how to correctly do this in JAVA.