Skip to content

Commit

Permalink
remove deprecated code from setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyBasher committed Feb 19, 2024
1 parent 6de6c58 commit 05df6b7
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions lib/setup.d/z_final.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# final tasks
# thomas@linuxmuster.net
# 20220105
# 20240219
#

import configparser
Expand All @@ -20,18 +20,6 @@
if os.path.isfile('/tmp/setup.ini'):
os.unlink('/tmp/setup.ini')

# disable unwanted services
unwanted = ['iscsid', 'dropbear', 'lxcfs']
for item in unwanted:
msg = 'Disabling service ' + item + ' '
printScript(msg, '', False, False, True)
try:
subProc('systemctl stop ' + item + '.service', logfile)
subProc('systemctl disable ' + item + '.service', logfile)
printScript(' Success!', '', True, True, False, len(msg))
except:
printScript(' not installed!', '', True, True, False, len(msg))

# restart apparmor service
msg = 'Restarting apparmor service '
printScript(msg, '', False, False, True)
Expand Down

0 comments on commit 05df6b7

Please sign in to comment.