From c36724bb6cb37e03d72b0d6f0995e0a91b871edf Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 19 Jan 2025 07:44:57 +0200 Subject: feat: Move archive_page logic from src to controllers --- shell.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index 5d18df2..5198659 100644 --- a/shell.nix +++ b/shell.nix @@ -36,10 +36,19 @@ let : ''${PHP_FPM_SOCKET:=$ROOT_DIR/php-fpm.sock} export SERVER_ROOT SERVER_PORT ROOT_DIR PHP_FPM_SOCKET + : ''${ARCHIVES_DIR:=$REPOSITORY/.archives} + export ARCHIVES_DIR + # # Apache2 # + if [ ! -d "$ARCHIVES_DIR" ] + then + echo 'Creating the archives directory...' + mkdir -p "$ARCHIVES_DIR" + fi + if [ ! -d "$ROOT_DIR" ] then echo 'Installing apache config...' -- cgit v1.3.1-26-gb76a