Skip to content
Snippets Groups Projects
Commit fc3b545d authored by christian's avatar christian
Browse files

Enabled mount stick and checkroot

parent a031b4f9
No related branches found
No related tags found
No related merge requests found
......@@ -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.")
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment