should be final fix

This commit is contained in:
Stefan Weijers 2021-07-25 21:47:12 +02:00
parent 8858b7a81b
commit 5fc38c8305
1 changed files with 6 additions and 6 deletions

12
init.py
View File

@ -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()