From 69614c7e150c6421b72197e37f9bf148e3bfb9ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu> Date: Thu, 31 May 2018 17:47:14 +0200 Subject: [PATCH] Skip startup script setup on 18.04 (refs #25525). --- 5.MediaServer/2.Startup_check_script_for_NFS/0_setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/5.MediaServer/2.Startup_check_script_for_NFS/0_setup.py b/5.MediaServer/2.Startup_check_script_for_NFS/0_setup.py index d2726f17..46614a41 100644 --- a/5.MediaServer/2.Startup_check_script_for_NFS/0_setup.py +++ b/5.MediaServer/2.Startup_check_script_for_NFS/0_setup.py @@ -1,11 +1,15 @@ #!/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', -- GitLab