From 5e7cf49b7ad3ab3d38ebd1ee9a0086a82c5daa01 Mon Sep 17 00:00:00 2001 From: Alain Takoudjou <talino@tiolive.com> Date: Tue, 11 Sep 2012 10:43:01 +0200 Subject: [PATCH] Make symbolic link instead of copy for boinc-app input file --- slapos/recipe/boinc/configure.py | 4 ++-- stack/boinc/instance.cfg | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 stack/boinc/instance.cfg diff --git a/slapos/recipe/boinc/configure.py b/slapos/recipe/boinc/configure.py index 7767b81bc..7f268dbbb 100644 --- a/slapos/recipe/boinc/configure.py +++ b/slapos/recipe/boinc/configure.py @@ -94,7 +94,7 @@ def services(args): user_profile = os.path.join(args['installroot'], 'html/user_profile') forum_file = os.path.join(args['installroot'], 'html/ops/create_forums.php') project_inc = os.path.join(args['installroot'], 'html/project/project.inc') - cmd = "chmod 02770 -R %s %s, %s %s %s" % (upload, inc, + cmd = "chmod 02700 -R %s %s, %s %s %s" % (upload, inc, languages, compiled, user_profile) os.system("chmod g+w -R " + args['installroot']) os.system(cmd) @@ -157,7 +157,7 @@ def deployApp(args): args['appname']+'_result')) shutil.copy(args['t_wu'], os.path.join(args['templates'], args['appname']+'_wu')) - shutil.copy(args['t_input'], args['inputfile']) + os.symlink(args['t_input'], args['inputfile']) shutil.copy(args['binary'], os.path.join(args['application'], args['binary_name'])) diff --git a/stack/boinc/instance.cfg b/stack/boinc/instance.cfg deleted file mode 100644 index f7a2d73a7..000000000 --- a/stack/boinc/instance.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[buildout] -parts = - switch_softwaretype - -eggs-directory = ${buildout:eggs-directory} -develop-eggs-directory = ${buildout:develop-eggs-directory} -offline = true - -[switch_softwaretype] -recipe = slapos.cookbook:softwaretype -default = ${template-boinc:output} -mariadb = ${template-mariadb:output} \ No newline at end of file -- 2.30.9