Commit 9f29988a authored by christian's avatar christian Committed by osak buildhauer user

Enabled mount stick and checkroot

parent 3c238566
......@@ -14,7 +14,7 @@ def subprocess_wrap(what):
while True:
status = proc.poll()
if status is not None:
break
break
output = proc.stdout.readline()
if output == '' and status:
break
......@@ -143,9 +143,7 @@ def showErrorBox(errorstring):
sys.exit(errorBox.exec_())
def checkIfRoot():
# disabled for testing
#if os.getuid() != 0:
if 0 != 0:
if os.getuid() != 0:
errorBox = QtWidgets.QMessageBox()
errorBox.setText("You must run this script as root.")
errorBox.setWindowTitle("Please run this script as root.")
......@@ -179,7 +177,7 @@ def makeDoku(stringlist):
#command=["echo", "./makeDoku.sh", basedir, " ".join(stringlist)]
command=["./makeDoku.sh", basedir+"/", " ".join(pkglist)]
subprocess_wrap(command)
def getPackagelist():
installList = []
model = window.ui.tableView.model()
......@@ -248,7 +246,7 @@ if __name__ == '__main__':
basepath=os.path.realpath(__file__)
basedir=os.path.dirname(basepath)
checkIfRoot()
#mountStick()
mountStick()
window = Main()
window.setWindowTitle("Linux Install Party Software Installer")
with open(basedir+'/../offline_repo.json', 'r') as inputfile:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment