Skip to content
Snippets Groups Projects
Commit 69614c7e authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Skip startup script setup on 18.04 (refs #25525).

parent 16ecd7b2
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import utils
def setup(interactive=True):
dir_path = utils.get_dir(__file__)
# This script should be installed only if the home partition is a mount point
if not os.path.isfile('/etc/rc.local'):
utils.log('The /etc/rc.local file does not exists, action skipped. See ticket "https://redmine.ubicast.net/issues/25525".')
return
cmds = [
dict(line='write', template='%s/check_services.py' % dir_path, target='/usr/local/bin/check_services.py'),
'chmod 755 /usr/local/bin/check_services.py',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment