aboutsummaryrefslogtreecommitdiff
path: root/tools/Linux
diff options
context:
space:
mode:
authorlcapriotti <lcapriotti@svn>2009-12-01 10:43:33 +0000
committerlcapriotti <lcapriotti@svn>2009-12-01 10:43:33 +0000
commit745dd8145ac41cc976fcb9e09ff3566ef74b1bc4 (patch)
treeab27d030fda553b15c4b59807893046ed89f0ed0 /tools/Linux
parentde091f94bd37f19ec050cbb70eae882fb09b6b93 (diff)
no user input on creating default xbmc-live user
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25164 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/Linux')
-rwxr-xr-xtools/Linux/packaging/debian/xbmc-live.postinst7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/Linux/packaging/debian/xbmc-live.postinst b/tools/Linux/packaging/debian/xbmc-live.postinst
index cea67af1c8..6f5a024013 100755
--- a/tools/Linux/packaging/debian/xbmc-live.postinst
+++ b/tools/Linux/packaging/debian/xbmc-live.postinst
@@ -14,7 +14,12 @@ case "$1" in
# Add the 'xbmc' user if the primary one is missing
xbmcUser=$(getent passwd 1000 | sed -e 's/\:.*//')
if [ ! -n "$xbmcUser" ]; then
- adduser --gecos "XBMC Live User" xbmc
+ clearTextPWD=xbmc
+ encryptedPWD=$(echo $clearTextPWD | mkpasswd -s)
+
+ adduser --disabled-password --gecos "XBMC Live User" xbmc
+ usermod -p $encryptedPWD xbmc
+
xbmcUser=xbmc
fi