summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-23 09:18:10 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-23 09:18:10 -0700
commit545cbb2c82306872af4a227fd4fc7088da8e9a8c (patch)
tree43d447a15cb8b8c53d3a044ae517975e396eb4eb
parent4ca6aa1930f65120162a692c4cb86f5becb4ae7f (diff)
make pwgen command configurable
-rw-r--r--scripts/setup.cfg.sample1
-rwxr-xr-xscripts/setup_status_network.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/scripts/setup.cfg.sample b/scripts/setup.cfg.sample
index 450b9c30a..72e6a21af 100644
--- a/scripts/setup.cfg.sample
+++ b/scripts/setup.cfg.sample
@@ -9,4 +9,5 @@ export ADMIN=root
export ADMINPASS=yourpassword
export SITEDB=example_net_site
export AVATARBASE=/var/www/avatar.example.net
+export PWDGEN="pwdgen 20"
diff --git a/scripts/setup_status_network.sh b/scripts/setup_status_network.sh
index e1d14593f..cf9f78315 100755
--- a/scripts/setup_status_network.sh
+++ b/scripts/setup_status_network.sh
@@ -5,7 +5,7 @@ source ./setup.cfg
export nickname=$1
export sitename=$2
-export password=`pwgen 20`
+export password=`$PWDGEN`
export database=$nickname$DBBASE
export username=$nickname$USERBASE