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
b6c74b78
Commit
b6c74b78
authored
May 17, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: run set_sudo before sudo using
parent
9d87c926
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
epm-check_updated_repo
bin/epm-check_updated_repo
+1
-0
epm-play
bin/epm-play
+2
-0
No files found.
bin/epm-check_updated_repo
View file @
b6c74b78
...
@@ -155,6 +155,7 @@ update_repo_if_needed()
...
@@ -155,6 +155,7 @@ update_repo_if_needed()
save_installed_packages
()
save_installed_packages
()
{
{
[
-d
$epm_vardir
]
||
return
0
[
-d
$epm_vardir
]
||
return
0
set_sudo
estrlist list
"
$@
"
| sudorun
tee
$epm_vardir
/installed-via-epm
>
/dev/null
estrlist list
"
$@
"
| sudorun
tee
$epm_vardir
/installed-via-epm
>
/dev/null
}
}
...
...
bin/epm-play
View file @
b6c74b78
...
@@ -29,6 +29,7 @@ __save_installed_app()
...
@@ -29,6 +29,7 @@ __save_installed_app()
{
{
[
-d
"
$epm_vardir
"
]
||
return
0
[
-d
"
$epm_vardir
"
]
||
return
0
__check_installed_app
"
$1
"
&&
return
0
__check_installed_app
"
$1
"
&&
return
0
set_sudo
echo
"
$1
"
| sudorun
tee
-a
$epm_vardir
/installed-app
>
/dev/null
echo
"
$1
"
| sudorun
tee
-a
$epm_vardir
/installed-app
>
/dev/null
}
}
...
@@ -36,6 +37,7 @@ __remove_installed_app()
...
@@ -36,6 +37,7 @@ __remove_installed_app()
{
{
[
-s
$epm_vardir
/installed-app
]
||
return
0
[
-s
$epm_vardir
/installed-app
]
||
return
0
local
i
local
i
set_sudo
for
i
in
$*
;
do
for
i
in
$*
;
do
sudorun
sed
-i
"/^
$i$/
d"
$epm_vardir
/installed-app
sudorun
sed
-i
"/^
$i$/
d"
$epm_vardir
/installed-app
done
done
...
...
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