aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix9
1 files changed, 9 insertions, 0 deletions
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...'