mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-14 06:12:19 +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):
|
||||
|
||||
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:
|
||||
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)
|
||||
|
||||
|
@ -274,9 +274,9 @@ class Util:
|
|||
def uninstall_package(package_name, package_version=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:
|
||||
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)
|
||||
|
||||
|
@ -335,7 +335,7 @@ class Util:
|
|||
|
||||
@staticmethod
|
||||
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)
|
||||
return result_code, p_out, p_err
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class InstallAhenk(AbstractPlugin):
|
|||
self.key_path = self.task['privateKeyPath']
|
||||
|
||||
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':
|
||||
self.download_url = self.task['downloadUrl']
|
||||
|
|
Loading…
Reference in a new issue