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

added /bin/bash to subproc uncommented mountstick

parent 8da7a3e2
Branches
No related tags found
No related merge requests found
...@@ -71,10 +71,10 @@ def enable_offline_repo(gui): ...@@ -71,10 +71,10 @@ def enable_offline_repo(gui):
QtWidgets.QMessageBox.error(gui, "Kein LIPSTick gefunden", "Es wird ohne LIPStick weiter gemacht") QtWidgets.QMessageBox.error(gui, "Kein LIPSTick gefunden", "Es wird ohne LIPStick weiter gemacht")
return return
subprocess_wrap([basedir+"/liprepoctl.sh", "on", stick[2][0]]) subprocess_wrap(['/bin/bash', basedir+"/liprepoctl.sh", "on", stick[2][0]])
def disable_offline_repo(): def disable_offline_repo():
subprocess_wrap([basedir+"/liprepoctl.sh", "off"]) subprocess_wrap(['/bin/bash', basedir+"/liprepoctl.sh", "off"])
def subprocess_wrap(what): def subprocess_wrap(what):
...@@ -249,15 +249,13 @@ def enableFirewall(): ...@@ -249,15 +249,13 @@ def enableFirewall():
subprocess_wrap(command) subprocess_wrap(command)
def mountStick(): def mountStick():
command=[basedir+"/infuse_offline_repo.sh"] command=['/bin/bash', basedir+"/infuse_offline_repo.sh"]
subprocess_wrap(command) subprocess_wrap(command)
def makeDoku(stringlist): def makeDoku(stringlist):
global pkglist global pkglist
command=["./makeDoku.sh", basedir+"/", " ".join(pkglist)]
subprocess_wrap(command)
command=[basedir+"/makeDoku.sh", basedir+"/", " ".join(pkglist)] command=['/bin/bash', basedir+"/makeDoku.sh", basedir+"/", " ".join(pkglist)]
subprocess_wrap(command) subprocess_wrap(command)
def getPackagelist(): def getPackagelist():
...@@ -328,7 +326,7 @@ if __name__ == '__main__': ...@@ -328,7 +326,7 @@ if __name__ == '__main__':
basedir=os.path.dirname(os.path.realpath(__file__)) basedir=os.path.dirname(os.path.realpath(__file__))
checkIfRoot() checkIfRoot()
chooseFirewall() chooseFirewall()
mountStick() #mountStick()
window = Main() window = Main()
window.setWindowTitle("Linux Install Party Software Installer") window.setWindowTitle("Linux Install Party Software Installer")
with open(basedir+'/../offline_repo.json', 'r') as inputfile: 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