File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,19 @@ def install_isolate():
224
224
os .path .join (USR_ROOT , "bin" , "isolate" ),
225
225
root , 0o4750 , group = cmsuser_grp )
226
226
227
+ def install_isolate_conf ():
228
+ """This function installs the configuration files for isolate
229
+
230
+ """
231
+ assert_root ()
232
+ root = pwd .getpwnam ("root" )
233
+ try :
234
+ cmsuser_grp = grp .getgrnam (CMSUSER )
235
+ except :
236
+ print ("[Error] The user %s doesn't exist yet" % CMSUSER )
237
+ print ("[Error] You need to run the install command at least once" )
238
+ exit (1 )
239
+
227
240
print ("===== Copying isolate config to /usr/local/etc/" )
228
241
makedir (os .path .join (USR_ROOT , "etc" ), root , 0o755 )
229
242
copyfile (os .path .join ("." , "isolate" , "default.cf" ),
@@ -313,6 +326,7 @@ def install():
313
326
old_umask = os .umask (0o000 )
314
327
315
328
if not NO_CONF :
329
+ install_isolate_conf ()
316
330
install_conf ()
317
331
318
332
print ("===== Creating directories" )
You can’t perform that action at this time.
0 commit comments