Fix key-build permissions
authorJo-Philipp Wich <jo@mein.io>
Wed, 11 May 2016 11:45:27 +0000 (13:45 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 11 May 2016 11:45:30 +0000 (13:45 +0200)
Don't use readonly permissions for key-build and key-build.pub as subsequent
runs are unable to overwrite the files then.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg
phase2/master.cfg

index e9e955632ad803d7a4c187524fd6247d6141f8a3..c6c7d47e868dbe2441e5cb889041466f6f242bf0 100644 (file)
@@ -308,8 +308,8 @@ EOT''' %(ts[0], ts[0], ts[1]) ))
        ))
 
        # install build key
-       factory.addStep(FileDownload(mastersrc=home_dir+'/key-build', slavedest="key-build", mode=0400))
-       factory.addStep(FileDownload(mastersrc=home_dir+'/key-build.pub', slavedest="key-build.pub", mode=0400))
+       factory.addStep(FileDownload(mastersrc=home_dir+'/key-build', slavedest="key-build", mode=0600))
+       factory.addStep(FileDownload(mastersrc=home_dir+'/key-build.pub', slavedest="key-build.pub", mode=0600))
 
        # prepare dl
        factory.addStep(ShellCommand(
index 41d50c892e6c8abcae708cfa781838b0f5448af0..21862d4ffce4716c3eaaaf3dfc4544b218e98965 100644 (file)
@@ -164,8 +164,8 @@ for arch in arches:
                command = ["tar", "--strip-components=1", "-C", "sdk/", "-vxjf", "sdk.tar.bz2"],
                haltOnFailure = True))
 
-       factory.addStep(FileDownload(mastersrc=home_dir+'/key-build', slavedest="sdk/key-build", mode=0400))
-       factory.addStep(FileDownload(mastersrc=home_dir+'/key-build.pub', slavedest="sdk/key-build.pub", mode=0400))
+       factory.addStep(FileDownload(mastersrc=home_dir+'/key-build', slavedest="sdk/key-build", mode=0600))
+       factory.addStep(FileDownload(mastersrc=home_dir+'/key-build.pub', slavedest="sdk/key-build.pub", mode=0600))
 
        factory.addStep(ShellCommand(
                name = "mkdldir",