summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-23 10:43:50 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-23 10:43:50 -0700
commita515c3ce530aba411e0d8f90de071ede90318142 (patch)
treef2078548f6a330d95b000918d5fe2bf7ba0fa4e5 /scripts
parente744eba7ebf6f2b057bfd45a9f3b3c4626017c50 (diff)
other base directories
Diffstat (limited to 'scripts')
-rw-r--r--scripts/setup.cfg.sample2
-rwxr-xr-xscripts/setup_status_network.sh6
2 files changed, 6 insertions, 2 deletions
diff --git a/scripts/setup.cfg.sample b/scripts/setup.cfg.sample
index dd3c2705f..ef33cd632 100644
--- a/scripts/setup.cfg.sample
+++ b/scripts/setup.cfg.sample
@@ -9,5 +9,7 @@ export ADMIN=root
export ADMINPASS=yourpassword
export SITEDB=example_net_site
export AVATARBASE=/var/www/avatar.example.net
+export BACKGROUNDBASE=/var/www/background.example.net
+export FILEBASE=/var/www/file.example.net
export PWDGEN="pwgen 20"
diff --git a/scripts/setup_status_network.sh b/scripts/setup_status_network.sh
index 29ee010ed..f0bb2cae8 100755
--- a/scripts/setup_status_network.sh
+++ b/scripts/setup_status_network.sh
@@ -26,5 +26,7 @@ VALUES ('$nickname', '$DBHOST', '$username', '$password', '$database', '$sitenam
ENDOFCOMMANDS
-mkdir $AVATARBASE/$nickname
-chmod a+w $AVATARBASE/$nickname
+for top in $AVATARBASE $FILEBASE $BACKGROUNDBASE; do
+ mkdir $top/$nickname
+ chmod a+w $top/$nickname
+done