From e55fc563d6cb10c3568d50485b914cc93ffedf8f Mon Sep 17 00:00:00 2001 From: milisman Date: Tue, 11 Oct 2016 23:43:00 +0300 Subject: [PATCH] milis-kurulum-test.py --- bin/{kurulumtest.py => milis-kurulum-test.py} | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) rename bin/{kurulumtest.py => milis-kurulum-test.py} (97%) diff --git a/bin/kurulumtest.py b/bin/milis-kurulum-test.py similarity index 97% rename from bin/kurulumtest.py rename to bin/milis-kurulum-test.py index a4181af51..22537608e 100644 --- a/bin/kurulumtest.py +++ b/bin/milis-kurulum-test.py @@ -15,10 +15,6 @@ if os.path.exists("/usr/bin/acp") is False: os.system("mps -G") time.sleep(3) os.system("mps kur advcp") -if os.path.exists("/usr/bin/expect") is False: - os.system("mps -G") - time.sleep(3) - os.system("mps kur expect") #lsb-release tamiri time.sleep(3) os.system("mps -sz lsb-release && mps -ik lsb-release") @@ -61,7 +57,7 @@ def createUser(name,username,password): #encPass = crypt.crypt(password,"22") #os.system("useradd -p "+encPass+ " -s "+ "/bin/bash "+ "-d "+ "/home/" + username+ " -m "+ " -c \""+ name+"\" " + username) os.system("kopar milis-"+name+" "+username) - os.system("echo "+password+" | passwd "+username+" --stdin") + os.system('echo -e "'password+'\n'+password'" | passwd '+username) def checkUserPassword(username): #insecure=True parolanın yıldız şeklinde gözükmesini sağlar,