mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2025-01-10 01:12:15 +03:00
Update apt-get commands --allow-unauthenticated
This commit is contained in:
parent
2fbd0cdf2b
commit
51cf5a9ca9
2 changed files with 6 additions and 6 deletions
|
@ -264,9 +264,9 @@ class Util:
|
||||||
def install_with_apt_get(package_name, package_version=None):
|
def install_with_apt_get(package_name, package_version=None):
|
||||||
|
|
||||||
if package_version is not None:
|
if package_version is not None:
|
||||||
command = 'apt-get install --yes --force-yes {0}={1}'.format(package_name, package_version)
|
command = 'apt-get install --yes --allow-unauthenticated {0}={1}'.format(package_name, package_version)
|
||||||
else:
|
else:
|
||||||
command = 'apt-get install --yes --force-yes {0}'.format(package_name)
|
command = 'apt-get install --yes --allow-unauthenticated {0}'.format(package_name)
|
||||||
|
|
||||||
return Util.execute(command)
|
return Util.execute(command)
|
||||||
|
|
||||||
|
@ -274,9 +274,9 @@ class Util:
|
||||||
def uninstall_package(package_name, package_version=None):
|
def uninstall_package(package_name, package_version=None):
|
||||||
|
|
||||||
if package_version is not None:
|
if package_version is not None:
|
||||||
command = 'apt-get purge --yes --force-yes {0}={1}'.format(package_name, package_version)
|
command = 'apt-get purge --yes --allow-unauthenticated {0}={1}'.format(package_name, package_version)
|
||||||
else:
|
else:
|
||||||
command = 'apt-get purge --yes --force-yes {0}'.format(package_name)
|
command = 'apt-get purge --yes --allow-unauthenticated {0}'.format(package_name)
|
||||||
|
|
||||||
return Util.execute(command)
|
return Util.execute(command)
|
||||||
|
|
||||||
|
@ -335,7 +335,7 @@ class Util:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def remove_package(package_name, package_version):
|
def remove_package(package_name, package_version):
|
||||||
command = "sudo apt-get --yes --force-yes purge {0}={1}".format(package_name, package_version)
|
command = "sudo apt-get --yes --allow-unauthenticated purge {0}={1}".format(package_name, package_version)
|
||||||
result_code, p_out, p_err = Util.execute(command)
|
result_code, p_out, p_err = Util.execute(command)
|
||||||
return result_code, p_out, p_err
|
return result_code, p_out, p_err
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ class InstallAhenk(AbstractPlugin):
|
||||||
self.key_path = self.task['privateKeyPath']
|
self.key_path = self.task['privateKeyPath']
|
||||||
|
|
||||||
if self.install_method == 'APT_GET':
|
if self.install_method == 'APT_GET':
|
||||||
self.install_command = 'sudo apt-get install -y --force-yes ahenk' # TODO name for ahenk
|
self.install_command = 'sudo apt-get install -y --allow-unauthenticated ahenk' # TODO name for ahenk
|
||||||
|
|
||||||
elif self.install_method == 'WGET':
|
elif self.install_method == 'WGET':
|
||||||
self.download_url = self.task['downloadUrl']
|
self.download_url = self.task['downloadUrl']
|
||||||
|
|
Loading…
Reference in a new issue