Skip to content

Commit

Permalink
Can't chmod a file before it exists
Browse files Browse the repository at this point in the history
hakusaro committed Oct 15, 2016
1 parent b20e206 commit bba0d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create_release.py
Original file line number Diff line number Diff line change
@@ -109,9 +109,9 @@ def upload_artifacts():
os.chdir(cur_wd)
shutil.copy(os.path.join(release_dir, 'tshock_release.zip'), os.path.join(os.environ.get('TRAVIS_BRANCH', 'test-branch'), os.environ.get('TRAVIS_BUILD_NUMBER', 'test-0407')))
shutil.copy(os.path.join(release_dir, 'tshock_debug.zip'), os.path.join(os.environ.get('TRAVIS_BRANCH', 'test-branch'), os.environ.get('TRAVIS_BUILD_NUMBER', 'test-0407')))
os.chmod('./scripts/ssh_private_key', 0600)
decrypt_process = subprocess.Popen(['openssl', 'aes-256-cbc', '-K', os.environ.get('encrypted_1d7cd15ffdb4_key'), '-iv', os.environ.get('encrypted_1d7cd15ffdb4_iv'), '-in', './scripts/ssh_private_key.enc', '-out', './scripts/ssh_private_key', '-d'])
decrypt_process.wait()
os.chmod('./scripts/ssh_private_key', 0600)
upload_process = subprocess.Popen(['scp', '-oStrictHostKeyChecking=no', '-i', './scripts/ssh_private_key', '-r', os.environ.get('TRAVIS_BRANCH', 'test-branch'), 'tshock-travis@arc.shanked.me:/usr/share/nginx/tshock-travis/'])
upload_process.wait()

0 comments on commit bba0d72

Please sign in to comment.