summaryrefslogtreecommitdiff
path: root/FS-Test/bin/freeside-test-stop
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-08-04 12:43:50 -0700
committerMark Wells <mark@freeside.biz>2015-08-04 12:43:50 -0700
commitf673db50d866ac1b64bb80b09bd81071d089bf41 (patch)
treee9cc3bbe5c3e00919a70c78b14e935dafa109f8c /FS-Test/bin/freeside-test-stop
parentb25efe03cc7945773363ba74e2012646c258a1b5 (diff)
don't create test htpasswd on 4.x
Diffstat (limited to 'FS-Test/bin/freeside-test-stop')
-rwxr-xr-xFS-Test/bin/freeside-test-stop14
1 files changed, 0 insertions, 14 deletions
diff --git a/FS-Test/bin/freeside-test-stop b/FS-Test/bin/freeside-test-stop
index 50668907c..2c62c10cd 100755
--- a/FS-Test/bin/freeside-test-stop
+++ b/FS-Test/bin/freeside-test-stop
@@ -14,20 +14,6 @@ if psql -l |grep -q '^ *freeside '; then
psql postgres -c "ALTER DATABASE freeside RENAME TO $newname"
fi
-if (sudo grep -q '^test:' /usr/local/etc/freeside/htpasswd); then
- newhtpasswd=htpasswd_test_`date +%Y%m%d`
- echo "Renaming htpasswd to $newhtpasswd."
- sudo mv /usr/local/etc/freeside/htpasswd /usr/local/etc/freeside/$newhtpasswd
- oldhtpasswd=$( cd /usr/local/etc/freeside; \
- ls |grep -P 'htpasswd_\d{8}' | \
- sort -nr |head -1 )
- if [ -f $oldhtpasswd ]; then
- echo "Renaming $oldhtpasswd to htpasswd."
- sudo mv /usr/local/etc/freeside/$oldhtpasswd \
- /usr/local/etc/freeside/htpasswd
- fi
-fi
-
oldname=$( psql -tl | \
cut -d '|' -f 1 | \
tr -d ' ' | \