summaryrefslogtreecommitdiff
path: root/www/oops/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'www/oops/pkg-install')
-rw-r--r--www/oops/pkg-install8
1 files changed, 7 insertions, 1 deletions
diff --git a/www/oops/pkg-install b/www/oops/pkg-install
index 22ba34665ec2..116d14d3961a 100644
--- a/www/oops/pkg-install
+++ b/www/oops/pkg-install
@@ -37,7 +37,13 @@ if [ x"$2" = xPRE-INSTALL ]; then
echo "You already have a user \"${user}\", so I will use it."
else
echo "You need a user \"${user}\"."
- if yesno "Would you like me to create it" y; then
+ doadduser=1
+ if [ "$BATCH" = "yes" ]; then
+ doadduser=0
+ else
+ yesno "Would you like me to create it" y && doadduser=0
+ fi
+ if [ $doadduser = 0 ]; then
/usr/sbin/pw useradd ${user} -g ${group} -h - -d /nonexistent \
-s /nonexistent -c "Oops Cache System" || exit
echo "Done."