From a819195b83d8aedb4dd9748395e6d1940bf89948 Mon Sep 17 00:00:00 2001 From: Stefan Weijers Date: Sun, 25 Jul 2021 21:51:11 +0200 Subject: [PATCH] last fix, added chmod call to init.py --- init.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.py b/init.py index 26df26c..a780502 100644 --- a/init.py +++ b/init.py @@ -6,6 +6,7 @@ from config import bcolors #Create motd entry try: motdscript = open('/etc/update-motd.d/stats', 'w') + os.system('chmod +x /etc/update-motd.d/stats') except: print('[' + bcolors.FULL + 'IMPORTANT' + bcolors.RESET + ']') print('Make sure you run the program as root!') @@ -18,5 +19,6 @@ motdscript.write('#!/bin/bash\n{}/start.sh'.format(cwd)) #Create start script startscript = open('start.sh', 'w') startscript.write('#!/bin/bash\npython3 {}/time.py\necho\npython3 {}/diskusage.py\necho\npython3 {}/services.py'.format(cwd, cwd, cwd)) +os.system('chmod +x {}/start.sh'.format(cwd)) print('All done!')