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
5b14e3cd
Commit
5b14e3cd
authored
May 07, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: use esu instead of $SUDO
parent
1c65cc7d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
13 deletions
+7
-13
README.md
play.d/README.md
+2
-3
common.sh
play.d/common.sh
+0
-5
mssql-server.sh
play.d/mssql-server.sh
+1
-1
mssql-tools.sh
play.d/mssql-tools.sh
+2
-2
sputnik-browser.sh
play.d/sputnik-browser.sh
+2
-2
No files found.
play.d/README.md
View file @
5b14e3cd
The main purpose of any play.d script is to download and to install a package.
Allowed variables:
*
$SUDO (will filled with 'sudo' command when running without root privilegies
Allowed commands:
*
epm (run the same epm called from)
*
epm print info (instead of epm print info)
*
epm tool eget (wget like utility)
*
epm tool estrlist (string operations)
*
esu (wrapper for
[
sudo
]
su - -c "command")
*
serv
See any file for
. $(dirname $0)/common.sh
...
...
play.d/common.sh
View file @
5b14e3cd
...
...
@@ -194,11 +194,6 @@ if [ -x "../bin/epm" ] ; then
export
PATH
=
"
$(
realpath
../bin
)
:
$PATH
"
fi
if
[
-z
"
$SUDO
"
]
&&
[
"
$UID
"
!=
"0"
]
;
then
SUDO
=
"sudo"
fi
# set PKGNAME to $BASEPKGNAME-$VERSION if $VERSION is found in PRODUCTALT
[
-n
"
$PRODUCTALT
"
]
&&
check_alternative_pkgname
...
...
play.d/mssql-server.sh
View file @
5b14e3cd
...
...
@@ -41,7 +41,7 @@ case "$(epm print info -d)" in
esac
if
[
-z
"
$EPM_AUTO
"
]
;
then
$SUDO
/opt/mssql/bin/mssql-conf setup accept-eula
esu
/opt/mssql/bin/mssql-conf setup accept-eula
serv mssql-server on
else
cat
<<
EOF
...
...
play.d/mssql-tools.sh
View file @
5b14e3cd
...
...
@@ -37,8 +37,8 @@ case "$(epm print info -d)" in
;;
esac
$SUDO
odbcinst
-i
-d
-f
/opt/microsoft/msodbcsql17/etc/odbcinst.ini
$SUDO
odbcinst
-q
-d
esu
odbcinst
-i
-d
-f
/opt/microsoft/msodbcsql17/etc/odbcinst.ini
esu
odbcinst
-q
-d
cat
<<
EOF
...
...
play.d/sputnik-browser.sh
View file @
5b14e3cd
...
...
@@ -54,10 +54,10 @@ epm install $(url_by_id_content "browser-b2c-$id_content")
ERR
=
$?
if
[
"
$ERR
"
=
0
]
;
then
echo
"Running # /opt/sputnik-browser/sputnik_client --generate_branding to get license in config.dat"
a
=
''
$SUDO
/opt/sputnik-browser/sputnik_client
--generate_branding
esu
/opt/sputnik-browser/sputnik_client
--generate_branding
echo
"Disable strange system service sputnik_client"
serv sputnik_client off
$SUDO
killall sputnik_client
esu
killall sputnik_client
fi
exit
$ERR
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