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
ddc0a086
Commit
ddc0a086
authored
May 13, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm pack 1c83client: use esu instead of SUDO
parent
90c9c6be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
epm-pack
bin/epm-pack
+0
-3
1c83-client.sh
pack.d/1c83-client.sh
+4
-4
No files found.
bin/epm-pack
View file @
ddc0a086
...
...
@@ -39,9 +39,6 @@ __epm_pack()
# a file to keep filename of generated tarball
filefortarname
=
"
$(
pwd
)
/filefortarname"
set_sudo
export
SUDO
[
"
$PROGDIR
"
=
"/usr/bin"
]
&&
SCPATH
=
"
$PATH
"
||
SCPATH
=
"
$PROGDIR
:
$PATH
"
local
bashopt
=
''
[
-n
"
$verbose
"
]
&&
bashopt
=
'-x'
...
...
pack.d/1c83-client.sh
View file @
ddc0a086
...
...
@@ -26,7 +26,7 @@ TARNAME="1c83-client-$VERSION.tar"
chmod
-v
u+x
$FILENAME
# По умолчанию устанавливается только "client_full,langs,en,ru,advanced". Все остальные компоненты по умолчанию отключены.
# Задана тихая установка.
$SUDO
$(
realpath
$FILENAME
)
--mode
unattended
||
fatal
"Can't install"
esu
$(
realpath
$FILENAME
)
--mode
unattended
||
fatal
"Can't install"
if
echo
"
$FILENAME
"
|
grep
-q
"x86_64.run$"
;
then
arch
=
"x86_64"
...
...
@@ -49,9 +49,9 @@ ADDFILES="$ADDFILES /usr/share/pixmaps/1c* /usr/share/app-install/icons/1c* /usr
epm
install
--skip-installed
tar
||
fatal
a
=
tar
cf
$TARNAME
$INSTDIR
$ADDFILES
$SUDO
touch
/opt/.placeholder
esu
touch
/opt/.placeholder
# Задана тихая деинсталяция.
$SUDO
$UNINSTFILE
--mode
unattended
$SUDO
rm
/opt/.placeholder
esu
$UNINSTFILE
--mode
unattended
esu
rm
/opt/.placeholder
return_tar
$TARNAME
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