Final fix for Xenial stack
This commit is contained in:
@@ -152,13 +152,18 @@ def pre_pref(self, apt_packages):
|
|||||||
|
|
||||||
# nano
|
# nano
|
||||||
if 'nano' in apt_packages:
|
if 'nano' in apt_packages:
|
||||||
if WOVar.wo_platform_codename == 'bionic':
|
if WOVar.wo_distro == 'ubuntu':
|
||||||
Log.debug(self, 'Adding ppa for nano')
|
if WOVar.wo_platform_codename == 'bionic':
|
||||||
WORepo.add(self, ppa=WOVar.wo_ubuntu_backports)
|
Log.debug(self, 'Adding ppa for nano')
|
||||||
|
WORepo.add(self, ppa=WOVar.wo_ubuntu_backports)
|
||||||
|
elif WOVar.wo_platform_codename == 'xenial':
|
||||||
|
Log.debug(self, 'Adding ppa for nano')
|
||||||
|
WORepo.add_key(self, WOVar.wo_nginx_key)
|
||||||
|
WORepo.add(self, repo_url=WOVar.wo_extra_repo)
|
||||||
else:
|
else:
|
||||||
if (not WOFileUtils.grepcheck(
|
if (not WOFileUtils.grepcheck(
|
||||||
self, '/etc/apt/sources.list/wo-repo.list',
|
self, '/etc/apt/sources.list/wo-repo.list',
|
||||||
'WordOps') and not WOVar.wo_platform_codename == 'focal'):
|
'WordOps')):
|
||||||
Log.info(self, "Adding repository for Nano, please wait...")
|
Log.info(self, "Adding repository for Nano, please wait...")
|
||||||
Log.debug(self, 'Adding repository for Nano')
|
Log.debug(self, 'Adding repository for Nano')
|
||||||
WORepo.add_key(self, WOVar.wo_nginx_key)
|
WORepo.add_key(self, WOVar.wo_nginx_key)
|
||||||
@@ -1260,8 +1265,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
|
|||||||
'added by WordOps')
|
'added by WordOps')
|
||||||
|
|
||||||
# nanorc
|
# nanorc
|
||||||
if (('nano' in apt_packages) and
|
if 'nano' in apt_packages:
|
||||||
(not WOVar.wo_platform_codename == 'xenial')):
|
|
||||||
Log.debug(self, 'Setting up nanorc')
|
Log.debug(self, 'Setting up nanorc')
|
||||||
WOGit.clone(self, 'https://github.com/scopatz/nanorc.git',
|
WOGit.clone(self, 'https://github.com/scopatz/nanorc.git',
|
||||||
'/usr/share/nano-syntax-highlighting')
|
'/usr/share/nano-syntax-highlighting')
|
||||||
|
|||||||
@@ -111,6 +111,10 @@ class WOVar():
|
|||||||
# Nginx repo and packages
|
# Nginx repo and packages
|
||||||
if wo_distro == 'ubuntu':
|
if wo_distro == 'ubuntu':
|
||||||
wo_nginx_repo = "ppa:wordops/nginx-wo"
|
wo_nginx_repo = "ppa:wordops/nginx-wo"
|
||||||
|
wo_extra_repo = (
|
||||||
|
"deb http://download.opensuse.org"
|
||||||
|
"/repositories/home:/virtubox:"
|
||||||
|
"/WordOps/xUbuntu_{0}/".format(wo_platform_version))
|
||||||
else:
|
else:
|
||||||
if wo_distro == 'debian':
|
if wo_distro == 'debian':
|
||||||
if wo_platform_codename == 'jessie':
|
if wo_platform_codename == 'jessie':
|
||||||
|
|||||||
Reference in New Issue
Block a user