projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c615fd
)
Handle case where /tmp/.webmin is missing
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 1 Oct 2009 04:58:14 +0000
(21:58 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 1 Oct 2009 04:58:14 +0000
(21:58 -0700)
makedebian.pl
patch
|
blob
|
history
diff --git
a/makedebian.pl
b/makedebian.pl
index
6d7fb2b
..
2189330
100755
(executable)
--- a/
makedebian.pl
+++ b/
makedebian.pl
@@
-282,7
+282,11
@@
noperlpath=1
nouninstall=1
nostart=1
export config_dir var_dir perl autoos port login crypt host ssl nochown autothird noperlpath nouninstall nostart allow atboot
-./setup.sh >/tmp/.webmin/$product-setup.out 2>&1
+tempdir=/tmp/.webmin
+if [ ! -d \$tempdir ]; then
+ tempdir=/tmp
+fi
+./setup.sh >$tempdir/$product-setup.out 2>&1
if [ "$product" = "webmin" ]; then
grep sudo= /etc/$product/miniserv.conf >/dev/null 2>&1
if [ "\$?" = 1 ]; then