aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextras/estampa-ssh4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/estampa-ssh b/extras/estampa-ssh
index eeee862..b17742d 100755
--- a/extras/estampa-ssh
+++ b/extras/estampa-ssh
@@ -11,6 +11,10 @@
set -eu
+# New uploads land mode 644 (rw-r--r--) so the nginx user can read them,
+# regardless of the upload account's default umask.
+umask 022
+
PASTE_DIR="${1:?usage: estampa-ssh <paste-dir>}"
estampa --run "$PASTE_DIR" >/dev/null 2>&1 || true