Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
e002a751
Commit
e002a751
authored
4 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-release_upgrade: run __check_system (assure we still have systemd) after upgrade
parent
43f90339
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
epm-release_upgrade
bin/epm-release_upgrade
+11
-11
No files found.
bin/epm-release_upgrade
View file @
e002a751
#!/bin/sh
#
# Copyright (C) 2013, 2016, 2017, 2019 Etersoft
# Copyright (C) 2013, 2016, 2017, 2019 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2013, 2016, 2017, 2019
, 2020
Etersoft
# Copyright (C) 2013, 2016, 2017, 2019
, 2020
Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
...
...
@@ -179,8 +179,8 @@ __switch_repo_to()
__check_system
()
{
# sure we have systemd if systemd is running
if
is_
installed systemd
&&
is_
active_systemd systemd
;
then
docmd epm
install
systemd
||
fatal
if
is_active_systemd systemd
;
then
docmd epm
--skip-installed
install
systemd
||
fatal
fi
}
...
...
@@ -243,8 +243,8 @@ __switch_alt_to_distro()
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check an error and run epm release-upgrade again"
__check_system
docmd epm upgrade
||
fatal
"Check an error and run epm release-upgrade again"
__check_system
docmd epm update-kernel
||
fatal
info
"Done."
;;
...
...
@@ -254,8 +254,8 @@ __switch_alt_to_distro()
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check an error and run epm release-upgrade again"
__check_system
docmd epm upgrade
||
fatal
"Check an error and run epm release-upgrade again"
__check_system
docmd epm update-kernel
||
fatal
info
"Done."
;;
...
...
@@ -265,13 +265,13 @@ __switch_alt_to_distro()
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check an error and run epm release-upgrade again"
__check_system
if
epm installed libcrypt
>
/dev/null
;
then
# glibc-core coflicts libcrypt
docmd epm downgrade apt pam pam0_passwdqc glibc-core libcrypt-
||
fatal
fi
docmd epm downgrade
docmd epm upgrade
||
fatal
"Check an error and run epm release-upgrade again"
__check_system
docmd epm update-kernel
||
fatal
info
"Done."
;;
...
...
@@ -282,9 +282,9 @@ __switch_alt_to_distro()
docmd epm remove gdb
||
fatal
__switch_repo_to
$TO
__epm_ru_update
||
fatal
__check_system
docmd epm upgrade
||
fatal
"Check an error and run epm release-upgrade again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check an error and run epm release-upgrade again"
__check_system
docmd epm update-kernel
||
fatal
info
"Done."
;;
...
...
@@ -294,12 +294,12 @@ __switch_alt_to_distro()
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm downgrade rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check an error and run epm release-upgrade again"
__check_system
if
epm installed libcrypt
>
/dev/null
;
then
# glibc-core coflicts libcrypt
docmd epm downgrade apt rpm pam pam0_passwdqc glibc-core libcrypt-
||
fatal
fi
docmd epm downgrade
__check_system
docmd epm upgrade
||
fatal
info
"Done."
;;
...
...
@@ -309,12 +309,12 @@ __switch_alt_to_distro()
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm downgrade rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check an error and run epm release-upgrade again"
__check_system
#if epm installed libcrypt >/dev/null ; then
# # glibc-core coflicts libcrypt
# docmd epm downgrade apt rpm pam pam0_passwdqc glibc-core libcrypt- || fatal
#fi
docmd epm downgrade
__check_system
docmd epm upgrade
||
fatal
info
"Done."
;;
...
...
@@ -324,8 +324,8 @@ __switch_alt_to_distro()
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check an error and run epm release-upgrade again"
__check_system
docmd epm downgrade
__check_system
docmd epm upgrade
||
fatal
info
"Done."
;;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment