Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
4e71e0e4
Commit
4e71e0e4
authored
Mar 18, 2021
by
Francesc Guasch
Browse files
refactor(install): lock when user is not root
parent
dd5c3110
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
4e71e0e4
...
...
@@ -146,6 +146,7 @@ sub BUILD {
sub
_install
($self) {
my
$pid
=
Proc::PID::
File
->
new
(
name
=>
"
ravada_install
");
$pid
->
file
({
dir
=>
"
/run/user/$>
"})
if
$>
;
if
(
$pid
->
alive
)
{
print
"
Waiting for install process to finish
"
if
$ENV
{
TERM
};
while
(
$pid
->
alive
)
{
...
...
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