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
1d41c194
Commit
1d41c194
authored
Aug 17, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrade: add --auto support for apt and yum/dnf
parent
de9d2752
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
epm-upgrade
bin/epm-upgrade
+8
-6
No files found.
bin/epm-upgrade
View file @
1d41c194
#!/bin/sh
#
# Copyright (C) 2012,
2014
Etersoft
# Copyright (C) 2012,
2014
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012,
2014, 2016
Etersoft
# Copyright (C) 2012,
2014, 2016
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
...
...
@@ -32,19 +32,21 @@ epm_upgrade()
case
$PMTYPE
in
apt-rpm|apt-dpkg
)
# non_interactive
local
APTOPTIONS
=
"
$(
subst_option non_interactive
-y
)
"
# Функцию добавления параметра при условии
CMD
=
"apt-get dist-upgrade
$noremove
"
CMD
=
"apt-get
$APTOPTIONS
dist-upgrade
$noremove
"
;;
aptitude-dpkg
)
CMD
=
"aptitude dist-upgrade"
;;
yum-rpm
)
local
OPTIONS
=
"
$(
subst_option non_interactive
-y
)
"
# can do update repobase automagically
CMD
=
"yum update"
CMD
=
"yum
$OPTIONS
update"
;;
dnf-rpm
)
CMD
=
"dnf distro-sync"
local
OPTIONS
=
"
$(
subst_option non_interactive
-y
)
"
CMD
=
"dnf
$OPTIONS
distro-sync"
;;
snappy
)
CMD
=
"snappy update"
...
...
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