From 5fc38c8305e96e8c4b6a4d6dd9a1096693e096f5 Mon Sep 17 00:00:00 2001 From: Stefan Weijers Date: Sun, 25 Jul 2021 21:47:12 +0200 Subject: [PATCH] should be final fix --- init.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/init.py b/init.py index be38092..26df26c 100644 --- a/init.py +++ b/init.py @@ -4,12 +4,12 @@ import os from config import bcolors #Create motd entry -#try: -motdscript = open('/etc/update-motd/stats', 'w') -#except: -# print('[' + bcolors.FULL + 'IMPORTANT' + bcolors.RESET + ']') -# print('Make sure you run the program as root!') -# quit() +try: + motdscript = open('/etc/update-motd.d/stats', 'w') +except: + print('[' + bcolors.FULL + 'IMPORTANT' + bcolors.RESET + ']') + print('Make sure you run the program as root!') + quit() cwd = os.getcwd()