When mount is returning:
STDERR: mount: block device /srv/database-data/postgres is write-protected, mounting read-only
mount: cannot mount block device /srv/database-data/postgres read-only
and dmesg shows:
#!/usr/bin/perl | |
############################################################################### | |
# Copyright 2006-2015, Way to the Web Limited | |
# URL: http://www.configserver.com | |
# Email: [email protected] | |
############################################################################### | |
sub custom_line { | |
my $line = shift; | |
my $lgfile = shift; |
# our server config for CORS as optimized as we can, supporting multiple domains, add_more_header and trying to avoid ifs as much as possible | |
# by Jose Luis Moya (alsur.es) | |
# sources include: | |
# https://gist.github.com/alexjs/4165271 | |
# @todo need to confirm if more_set_headers 'Access-Control-Allow-Origin: $http_origin'; being http_origin blank would unset or blank | |
# in this case we would rather use https://enable-cors.org/server_nginx.html method | |
# map aceptable domains, var will be assigned if it coincides only | |
# map $http_origin $allow_origin { | |
# ~^https?://(.*\.)?my-domain.com(:\d+)?$ $http_origin; |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# modified by Jose Luis Moya - alsur.es | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group |
# This is a template .gitignore file for git-managed WordPress projects. | |
# This is my own implementation based on various files | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# |
SED=`which sed` | |
CURRENT_DIR=`dirname $0` | |
echo "Dominio?" | |
read DOMAIN | |
# check the domain is valid! | |
PATTERN="^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$"; | |
if [[ "$DOMAIN" =~ $PATTERN ]]; then | |
DOMAIN=`echo $DOMAIN | tr '[A-Z]' '[a-z]'` |
--- | |
# | |
# Ansible playbook: Webmin for Ubuntu v201501302302 | |
# Louis T. Getterman IV (@LTGIV) | |
# www.GotGetLLC.com / www.opensour.cc | |
# | |
# Example Usage: | |
# [user@host ~$] ansible-playbook /etc/ansible/playbooks/webmin.yml --extra-vars 'target=nameFromHostsFile' | |
# | |
#- hosts: '{{ target }}' |
220-fe23.mail.saunalahti.fi ESMTP Postfix\r\n | |
220-fe26.mail.saunalahti.fi ESMTP Postfix\r\n | |
220-mx02-out.cloud.vadesecure.com ESMTP vcfr1mtai06p\r\n | |
220-mx1.agenturserver.de ESMTP Postfix\r\n | |
220-pre-greet-you-are-not-allowed-to-talk-yet.mx2.asom-net.dk\r\n | |
220-redirect.ovh.net smtp6\r\n | |
220-spamcadiznew.cadiz.es ESMTP - AyuntamientodeCadiz\r\n | |
450 Requested mail action not taken: mailbox unavailable.\r\n | |
453 4.1.1 AIemgvTg3q8Q7 Too Many Invalid Recipients (TT510)\r\n | |
501 5.5.4 Invalid Address.\r\n |
// ---- | |
// Sass (v3.3.9) | |
// Compass (v1.0.0.alpha.20) | |
// Scut (v0.10.4) | |
// ---- | |
@import "scut"; | |
@mixin typeset( $type: body-copy ) { | |
$types: ( |