mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix permissions of the ssh-id-wrapper script
This commit is contained in:
parent
23d7be7628
commit
ba92bb7b81
1 changed files with 16 additions and 0 deletions
16
setup.py
16
setup.py
|
@ -20,6 +20,7 @@ from distutils.cmd import Command
|
||||||
from distutils.command.build import build
|
from distutils.command.build import build
|
||||||
from distutils.command.clean import clean
|
from distutils.command.clean import clean
|
||||||
from distutils.command.sdist import sdist
|
from distutils.command.sdist import sdist
|
||||||
|
from distutils.command.install_lib import install_lib
|
||||||
# pylint: enable=E0611
|
# pylint: enable=E0611
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -380,6 +381,20 @@ class Install(install):
|
||||||
install.run(self)
|
install.run(self)
|
||||||
|
|
||||||
|
|
||||||
|
class InstallLib(install_lib):
|
||||||
|
def run(self):
|
||||||
|
install_lib.run(self)
|
||||||
|
|
||||||
|
# input and outputs match 1-1
|
||||||
|
inp = self.get_inputs()
|
||||||
|
out = self.get_outputs()
|
||||||
|
|
||||||
|
idx = inp.index('build/lib/salt/templates/git/ssh-id-wrapper')
|
||||||
|
filename = out[idx]
|
||||||
|
|
||||||
|
os.chmod(filename, 0755)
|
||||||
|
|
||||||
|
|
||||||
NAME = 'salt'
|
NAME = 'salt'
|
||||||
VER = __version__ # pylint: disable=E0602
|
VER = __version__ # pylint: disable=E0602
|
||||||
DESC = ('Portable, distributed, remote execution and '
|
DESC = ('Portable, distributed, remote execution and '
|
||||||
|
@ -490,6 +505,7 @@ SETUP_KWARGS = {'name': NAME,
|
||||||
|
|
||||||
if IS_WINDOWS_PLATFORM is False:
|
if IS_WINDOWS_PLATFORM is False:
|
||||||
SETUP_KWARGS['cmdclass']['sdist'] = CloudSdist
|
SETUP_KWARGS['cmdclass']['sdist'] = CloudSdist
|
||||||
|
SETUP_KWARGS['cmdclass']['install_lib'] = InstallLib
|
||||||
#SETUP_KWARGS['packages'].extend(['salt.cloud',
|
#SETUP_KWARGS['packages'].extend(['salt.cloud',
|
||||||
# 'salt.cloud.clouds'])
|
# 'salt.cloud.clouds'])
|
||||||
SETUP_KWARGS['package_data']['salt.cloud'] = ['deploy/*.sh']
|
SETUP_KWARGS['package_data']['salt.cloud'] = ['deploy/*.sh']
|
||||||
|
|
Loading…
Add table
Reference in a new issue