Website Summary Files Commits Branches @commit @diff @stats
path: root / shell.nix
diff options
context:
space:
mode:
Commitc36724bb6cb37e03d72b0d6f0995e0a91b871edf (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-19 07:44:57 +0200
Committer
 Kamen Mladenov <kamen@syndamia.com>
2025-01-19 07:46:17 +0200
Filesdde3aed035dff7b5438fef6b5dce6f6ec9462ebe /shell.nix
nowayforward_human-c36724bb6cb37e03d72b0d6f0995e0a91b871edf.tar
nowayforward_human-c36724bb6cb37e03d72b0d6f0995e0a91b871edf.tar.gz
nowayforward_human-c36724bb6cb37e03d72b0d6f0995e0a91b871edf.zip
Parent3ca7dba628b780ea9ee98eab649f5c9dec058726 (diff)
feat: Move archive_page logic from src to controllers
1 files changed, 9 insertions, 0 deletions
-rw-r--r--shell.nix9
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...'