From 46251563065e531d95d7cd4cd33a3074037ad8f1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 26 Mar 2020 12:44:04 +0100 Subject: [PATCH] undo changes --- conf/nginx.conf | 4 ---- scripts/_common.sh | 6 ------ 2 files changed, 10 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 297ec9f..edefb01 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -32,10 +32,6 @@ location __PATH__/ { deny all; } - location ~ ^__PATH__/var-.* { - deny all; - return 404; - } location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; diff --git a/scripts/_common.sh b/scripts/_common.sh index 88dd601..a9bf588 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -1,7 +1 @@ #!/bin/bash - -# Migrate files folder -find files -type f ! -name "*_count" | while read f; do bn="$(basename "$f")"; dst="files/${bn:0:8}/${bn:8:8}/${bn:16:8}/${bn:24:8}/"; mkdir -p "$dst"; mv "$f" "$dst" ; mv "${f}_count" "$dst"; done; find files -maxdepth 1 -type d -iname "?" -exec rm -rf {} \; - -# Migrate links folder -find links -type f | while read link; do bn="$(basename "$link")"; mkdir "links/$bn"; mv "$link" "links/$bn/"; done; find links -maxdepth 1 -type d -iname "?" -exec rm -rf {} \;